kernel32: Fix the DLL check in GetBinaryTypeW().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51375
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-07-01 10:47:08 +02:00
parent 11d6c52f32
commit 02268cb290
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ BOOL WINAPI GetBinaryTypeW( LPCWSTR name, LPDWORD type )
status = NtQuerySection( mapping, SectionImageInformation, &info, sizeof(info), NULL );
CloseHandle( mapping );
if (status) return FALSE;
if (!(info.ImageCharacteristics & IMAGE_FILE_DLL)) return FALSE;
if (info.ImageCharacteristics & IMAGE_FILE_DLL) return FALSE;
switch (info.Machine)
{
case IMAGE_FILE_MACHINE_I386: