diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c index b371e73d10c..199b2f3e449 100644 --- a/dlls/kernel32/process.c +++ b/dlls/kernel32/process.c @@ -2493,7 +2493,12 @@ static void exec_process( LPCWSTR name ) /* Determine executable type */ - if (binary_info.flags & BINARY_FLAG_DLL) return; + if (binary_info.flags & BINARY_FLAG_DLL) + { + CloseHandle( hFile ); + return; + } + switch (binary_info.type) { case BINARY_PE: