winebuild: Add IMAGE_FILE_32BIT_MACHINE flag for a 32-bit build.

This commit is contained in:
Dmitry Timoshkov 2007-09-04 16:52:16 +09:00 committed by Alexandre Julliard
parent 3de83dcb34
commit 6614028cd0
1 changed files with 2 additions and 0 deletions

View File

@ -336,6 +336,8 @@ DLLSPEC *alloc_dll_spec(void)
spec->characteristics = IMAGE_FILE_EXECUTABLE_IMAGE;
if (get_ptr_size() > 4)
spec->characteristics |= IMAGE_FILE_LARGE_ADDRESS_AWARE;
else
spec->characteristics |= IMAGE_FILE_32BIT_MACHINE;
spec->dll_characteristics = IMAGE_DLLCHARACTERISTICS_NX_COMPAT;
spec->subsystem = 0;
spec->subsystem_major = 4;