shell32: Fix compilation on systems that don't support nameless unions.
Francois Gouget
fgouget at free.fr
Sat Oct 17 13:28:22 CDT 2009
---
dlls/shell32/tests/shlexec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index 7d9e7b2..5e97f61 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -1408,7 +1408,7 @@ static void hook_WaitForInputIdle(void *new_func)
/* Search for the correct imported module by walking the import descriptors */
import_descriptor = (PIMAGE_IMPORT_DESCRIPTOR)(base + import_directory_rva);
- while (import_descriptor->OriginalFirstThunk != 0)
+ while (U(*import_descriptor).OriginalFirstThunk != 0)
{
char *import_module_name;
@@ -1423,7 +1423,7 @@ static void hook_WaitForInputIdle(void *new_func)
* arrays. We need the import name table to find the imported
* routine and the import address table to patch the address, so
* walk them side by side */
- int_entry = (PIMAGE_THUNK_DATA)(base + import_descriptor->OriginalFirstThunk);
+ int_entry = (PIMAGE_THUNK_DATA)(base + U(*import_descriptor).OriginalFirstThunk);
iat_entry = (PIMAGE_THUNK_DATA)(base + import_descriptor->FirstThunk);
while (int_entry->u1.Ordinal != 0)
{
--
1.6.3.3
More information about the wine-patches
mailing list