Francois Gouget : kernel32/tests: Fix compilation on systems that don' t support nameless unions.

Alexandre Julliard julliard at winehq.org
Mon Sep 22 07:03:54 CDT 2008


Module: wine
Branch: master
Commit: 7af03a041aaf7da3f55808c53d1f58d1f557aaa4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7af03a041aaf7da3f55808c53d1f58d1f557aaa4

Author: Francois Gouget <fgouget at free.fr>
Date:   Sat Sep 20 13:26:20 2008 +0200

kernel32/tests: Fix compilation on systems that don't support nameless unions.

---

 dlls/kernel32/tests/loader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/tests/loader.c b/dlls/kernel32/tests/loader.c
index 37f4c92..59588f8 100644
--- a/dlls/kernel32/tests/loader.c
+++ b/dlls/kernel32/tests/loader.c
@@ -526,7 +526,7 @@ static void test_ImportDescriptors(void)
         LPCSTR module_name = (LPCSTR) RVAToAddr(
                 import_chunk->Name, kernel32_module);
         PIMAGE_THUNK_DATA name_table = (PIMAGE_THUNK_DATA) RVAToAddr(
-                import_chunk->OriginalFirstThunk, kernel32_module);
+                U(*import_chunk).OriginalFirstThunk, kernel32_module);
         PIMAGE_THUNK_DATA iat = (PIMAGE_THUNK_DATA) RVAToAddr(
                 import_chunk->FirstThunk, kernel32_module);
         ok(module_name != NULL, "Imported module name should not be NULL\n");




More information about the wine-cvs mailing list