Module: wine Branch: master Commit: f3c092f738d356dcdf111de772e7d0a7d106ea33 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f3c092f738d356dcdf111de772...
Author: Francois Gouget fgouget@free.fr Date: Tue Aug 31 11:49:00 2010 +0200
kernel32/tests: Fix compilation on systems that don't support nameless unions or structs.
---
dlls/kernel32/tests/process.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/kernel32/tests/process.c b/dlls/kernel32/tests/process.c index b4a048a..77a303c 100644 --- a/dlls/kernel32/tests/process.c +++ b/dlls/kernel32/tests/process.c @@ -1810,11 +1810,11 @@ static void test_SystemInfo(void) pGetNativeSystemInfo(&nsi); if (is_wow64) { - if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL) + if (S(U(si)).wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL) { - ok(nsi.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64, + ok(S(U(nsi)).wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64, "Expected PROCESSOR_ARCHITECTURE_AMD64, got %d\n", - nsi.wProcessorArchitecture); + S(U(nsi)).wProcessorArchitecture); ok(nsi.dwProcessorType == PROCESSOR_AMD_X8664, "Expected PROCESSOR_AMD_X8664, got %d\n", nsi.dwProcessorType); @@ -1822,9 +1822,9 @@ static void test_SystemInfo(void) } else { - ok(si.wProcessorArchitecture == nsi.wProcessorArchitecture, + ok(S(U(si)).wProcessorArchitecture == S(U(nsi)).wProcessorArchitecture, "Expected no difference for wProcessorArchitecture, got %d and %d\n", - si.wProcessorArchitecture, nsi.wProcessorArchitecture); + S(U(si)).wProcessorArchitecture, S(U(nsi)).wProcessorArchitecture); ok(si.dwProcessorType == nsi.dwProcessorType, "Expected no difference for dwProcessorType, got %d and %d\n", si.dwProcessorType, nsi.dwProcessorType);