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 */
|
/* 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)
|
switch (binary_info.type)
|
||||||
{
|
{
|
||||||
case BINARY_PE:
|
case BINARY_PE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user