ADVPACK/tests: remove trailing backslash
Saulius Krasuckas
saulius2 at ar.fi.lt
Sun Aug 14 11:47:12 CDT 2005
This should fix advpack:advpack failures that occurr on win9x when test is
started in a root folder of a drive.
Log message:
Saulius Krasuckas <saulius.krasuckas at ieee.org>
Remove trailing backslash.
--- dlls/advpack/tests/advpack.c 2005-06-21 16:51:35.000000000 +0300
+++ /mnt/vcd2/wine/dlls/advpack/tests/advpack.c 2005-08-14 18:57:34.000000000 +0300
@@ -61,6 +61,9 @@ static void delnode_test(void)
currDirLen = GetCurrentDirectoryA(sizeof(currDir) / sizeof(CHAR), currDir);
assert(currDirLen > 0 && currDirLen < sizeof(currDir) / sizeof(CHAR));
+ if(currDir[--currDirLen] == '\\')
+ currDir[currDirLen] = 0;
+
/* Simple tests; these should fail. */
hr = pDelNode(NULL, 0);
ok (hr == E_FAIL, "DelNode called with NULL pathname should return E_FAIL\n");
More information about the wine-patches
mailing list