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

This commit is contained in:
Sebastian Lackner 2015-03-17 06:23:57 +01:00 committed by Alexandre Julliard
parent a9ff334976
commit d48e3a0bea
1 changed files with 6 additions and 1 deletions

View File

@ -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: