Commit 9559959f authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

kernel32/tests: Update a todo that succeeds with the new wow64 architecture.

parent 172c4daf
...@@ -853,11 +853,21 @@ static VOID test_thread_processor(void) ...@@ -853,11 +853,21 @@ static VOID test_thread_processor(void)
HANDLE curthread,curproc; HANDLE curthread,curproc;
DWORD_PTR processMask,systemMask,retMask; DWORD_PTR processMask,systemMask,retMask;
SYSTEM_INFO sysInfo; SYSTEM_INFO sysInfo;
BOOL is_wow64; BOOL is_wow64, old_wow64 = FALSE;
DWORD ret; DWORD ret;
if (!pIsWow64Process || !pIsWow64Process( GetCurrentProcess(), &is_wow64 )) is_wow64 = FALSE; if (!pIsWow64Process || !pIsWow64Process( GetCurrentProcess(), &is_wow64 )) is_wow64 = FALSE;
if (is_wow64)
{
TEB64 *teb64 = ULongToPtr(NtCurrentTeb()->GdiBatchCount);
if (teb64)
{
PEB64 *peb64 = ULongToPtr(teb64->Peb);
old_wow64 = !peb64->LdrData;
}
}
sysInfo.dwNumberOfProcessors=0; sysInfo.dwNumberOfProcessors=0;
GetSystemInfo(&sysInfo); GetSystemInfo(&sysInfo);
ok(sysInfo.dwNumberOfProcessors>0, ok(sysInfo.dwNumberOfProcessors>0,
...@@ -904,7 +914,7 @@ static VOID test_thread_processor(void) ...@@ -904,7 +914,7 @@ static VOID test_thread_processor(void)
{ {
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = SetThreadIdealProcessor(GetCurrentThread(), MAXIMUM_PROCESSORS + 1); ret = SetThreadIdealProcessor(GetCurrentThread(), MAXIMUM_PROCESSORS + 1);
todo_wine todo_wine_if(old_wow64)
ok(ret != ~0u, "Unexpected return value %lu.\n", ret); ok(ret != ~0u, "Unexpected return value %lu.\n", ret);
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment