From 11b0b0658d888a7fadc79a5102b7798e6c1953f6 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 21 Oct 2009 18:02:30 +0200 Subject: [PATCH] kernel32: Return the appropriate binary type for 64-bit PE files. --- dlls/kernel32/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/kernel32/module.c b/dlls/kernel32/module.c index 05d5add6205..8b5231b0120 100644 --- a/dlls/kernel32/module.c +++ b/dlls/kernel32/module.c @@ -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: