kernel32: Return failure in GetBinaryType() for DLL files.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-04-06 12:31:19 +02:00
parent 44f0a67ba5
commit 1e1f110c99
1 changed files with 1 additions and 0 deletions

View File

@ -190,6 +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;
switch (info.Machine)
{
case IMAGE_FILE_MACHINE_I386: