Commit d48e3a0b authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

kernel32: Fix file handle leak in exec_process (Coverity).

parent a9ff3349
......@@ -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:
......
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