KERNEL32: Fix module tests on Win9x
Felix Nawothnig
felix.nawothnig at t-online.de
Sat Jul 30 08:58:19 CDT 2005
ChangeLog:
Fix module tests on Win9x
-------------- next part --------------
Index: dlls/kernel/tests/module.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/module.c,v
retrieving revision 1.5
diff -u -r1.5 module.c
--- dlls/kernel/tests/module.c 27 Jul 2005 10:51:45 -0000 1.5
+++ dlls/kernel/tests/module.c 30 Jul 2005 13:36:02 -0000
@@ -76,7 +76,9 @@
ok(len1W / 2 == len2W, "Correct length in GetModuleFilenameW with buffer too small (%ld/%ld)\n", len1W / 2, len2W);
}
- ok(len1A / 2 == len2A, "Correct length in GetModuleFilenameA with buffer too small (%ld/%ld)\n", len1A / 2, len2A);
+ ok(len1A / 2 == len2A ||
+ len1A / 2 == len2A + 1, /* Win9x */
+ "Correct length in GetModuleFilenameA with buffer too small (%ld/%ld)\n", len1A / 2, len2A);
}
static void testGetModuleFileName_Wrong(void)
@@ -94,7 +96,9 @@
bufA[0] = '*';
ok(GetModuleFileNameA((void*)0xffffffff, bufA, sizeof(bufA)) == 0, "Unexpected success in module handle\n");
- ok(bufA[0] == '*', "When failing, buffer shouldn't be written to\n");
+ ok(bufA[0] == '*' ||
+ bufA[0] == 0 /* Win9x */,
+ "When failing, buffer shouldn't be written to\n");
}
static void testLoadLibraryA(void)
More information about the wine-patches
mailing list