mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:28:19 +00:00
kernel32: Make the test compatible with win9x.
This commit is contained in:
parent
e4d332b601
commit
fed582de5c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue