[PATCH 1/4] kernel32: Allow EnumProcessModules() to succeed on a WoW64 process.
Alexandre Julliard
julliard at winehq.org
Mon May 28 13:23:28 CDT 2018
Zebediah Figura <zfigura at codeweavers.com> writes:
> @@ -1514,6 +1569,30 @@ static BOOL init_module_iterator(MODULE_ITERATOR *iter, HANDLE process)
> return FALSE;
> }
>
> + if (!is_wow64 && iter->wow64)
> + {
> + PEB_LDR_DATA32 *ldr_data32_ptr;
> + DWORD ldr_data32, first_module;
> + PEB32 *peb32;
It would be cleaner to check for 64-bit instead of is_wow64. This code
doesn't even need to be compiled for 32-bit.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list