kernel32: Make the test compatible with win9x.

This commit is contained in:
Dmitry Timoshkov 2008-03-26 12:25:25 +08:00 committed by Alexandre Julliard
parent e4d332b601
commit fed582de5c

View file

@ -152,13 +152,7 @@ static void test_overlapped_buffers(void)
char buf[256];
int ret;
SetLastError(0xdeadbeef);
lstrcpyW((WCHAR *)(buf + 1), strW);
if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
{
skip("lstrcypW is not implemented\n");
return;
}
memcpy((WCHAR *)(buf + 1), strW, sizeof(strW));
ret = WideCharToMultiByte(CP_ACP, 0, (WCHAR *)(buf + 1), -1, buf, sizeof(buf), NULL, NULL);
ok(ret == sizeof(strA), "unexpected ret %d\n", ret);
ok(!memcmp(buf, strA, sizeof(strA)), "conversion failed: %s\n", buf);