ntdll: Use 32bit when COM header marks it required.

Currently, when using wine64 to to load a .NET application which has the
32-bit required flag switched on, it fails with a c0000017 error
(ERROR_NOT_ENOUGH_MEMORY).

Signed-off-by: Brendan McGrath <brendan@redmandi.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Brendan McGrath 2018-11-25 06:39:00 +11:00 committed by Alexandre Julliard
parent 081a48ebab
commit 8cd569cf26
1 changed files with 2 additions and 6 deletions

View File

@ -1984,12 +1984,8 @@ static BOOL is_valid_binary( HMODULE module, const pe_image_info_t *info )
if (info->machine == IMAGE_FILE_MACHINE_ARM64) return TRUE;
#endif
if (!info->contains_code) return TRUE;
if (info->image_flags & IMAGE_FLAGS_ComPlusNativeReady)
{
if (!convert_to_pe64( module, info )) return FALSE;
}
if (info->image_flags & IMAGE_FLAGS_ComPlusILOnly) return TRUE;
return FALSE;
if (!(info->image_flags & IMAGE_FLAGS_ComPlusNativeReady)) return FALSE;
return convert_to_pe64( module, info );
#else
return FALSE; /* no wow64 support on other platforms */
#endif