Commit 19587414 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Vitaly Lipatov

kernel32: Remove DLL check from GetBinaryType. (eterbug #15325).

parent 3ad55d91
...@@ -189,7 +189,6 @@ BOOL WINAPI GetBinaryTypeW( LPCWSTR name, LPDWORD type ) ...@@ -189,7 +189,6 @@ BOOL WINAPI GetBinaryTypeW( LPCWSTR name, LPDWORD type )
status = NtQuerySection( mapping, SectionImageInformation, &info, sizeof(info), NULL ); status = NtQuerySection( mapping, SectionImageInformation, &info, sizeof(info), NULL );
CloseHandle( mapping ); CloseHandle( mapping );
if (status) return FALSE; if (status) return FALSE;
if (info.ImageCharacteristics & IMAGE_FILE_DLL) return FALSE;
switch (info.Machine) switch (info.Machine)
{ {
case IMAGE_FILE_MACHINE_I386: 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