Commit 02268cb2 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Fix the DLL check in GetBinaryTypeW().

parent 11d6c52f
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment