kernel32: Return the appropriate binary type for 64-bit PE files.
authorAlexandre Julliard <julliard@winehq.org>
Wed, 21 Oct 2009 16:02:30 +0000 (18:02 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 21 Oct 2009 16:02:30 +0000 (18:02 +0200)
dlls/kernel32/module.c

index 05d5add6205e4a1cd0574a580726a86b4149cefd..8b5231b01205c86a14691ba5354665d043315ab2 100644 (file)
@@ -443,7 +443,7 @@ BOOL WINAPI GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType )
         break;
     }
     case BINARY_PE:
-        *lpBinaryType = SCS_32BIT_BINARY;
+        *lpBinaryType = (binary_type & BINARY_FLAG_64BIT) ? SCS_64BIT_BINARY : SCS_32BIT_BINARY;
         ret = TRUE;
         break;
     case BINARY_WIN16: