mirror of
https://github.com/reactos/wine.git
synced 2025-03-03 02:05:48 +00:00
setupapi: Avoid NULL dereference in error path (Coverity).
This commit is contained in:
parent
6fb5e61afb
commit
1b27af164c
@ -1024,7 +1024,7 @@ static struct inf_file *parse_file( HANDLE handle, const WCHAR *class, DWORD sty
|
||||
UnmapViewOfFile( buffer );
|
||||
if (err)
|
||||
{
|
||||
free_inf_file( file );
|
||||
if (file) free_inf_file( file );
|
||||
SetLastError( err );
|
||||
file = NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user