test for LoadString
Andrey Turkin
pancha at mail.nnov.ru
Wed Jun 21 05:53:54 CDT 2006
Native LoadString seemingly ignores high word of string resource id.
Builtin ignores high 12 bits. This test highlights this issue.
ChangeLog:
added test for LoadString
-------------- next part --------------
diff -Napur wine-0.9.15-orig/dlls/user/tests/resource.c wine-0.9.15/dlls/user/tests/resource.c
--- wine-0.9.15-orig/dlls/user/tests/resource.c 2006-06-21 14:38:47.000000000 +0400
+++ wine-0.9.15/dlls/user/tests/resource.c 2006-06-21 14:39:21.000000000 +0400
@@ -61,6 +61,13 @@ static void test_LoadStringA (void)
ok (buf[len] == 0, "bufsiz=%d: NUL termination missing\n",
bufsiz);
}
+
+ ok (LoadStringA(hInst, 3125, buf, sizeof(buf))>0, "LoadString failed: %ld\n", GetLastError());
+ ok (LoadStringA(hInst, (1<<31) | 3125, buf, sizeof(buf))>0, "LoadString failed: %ld\n", GetLastError());
+ todo_wine {
+ ok (LoadStringA(hInst, (0x8013<<16) | 3125, buf, sizeof(buf))>0, "LoadString failed: %ld\n", GetLastError());
+ ok (LoadStringA(hInst, (0xFFFF<<16) | 3125, buf, sizeof(buf))>0, "LoadString failed: %ld\n", GetLastError());
+ }
}
static void test_accel1(void)
More information about the wine-patches
mailing list