kernel32: Fix file handle leak in exec_process (Coverity).
This commit is contained in:
parent
a9ff334976
commit
d48e3a0bea
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue