setupapi: Avoid NULL dereference in error path (Coverity).

This commit is contained in:
Marcus Meissner 2010-01-08 09:20:34 +01:00 committed by Alexandre Julliard
parent 6fb5e61afb
commit 1b27af164c
1 changed files with 1 additions and 1 deletions

View File

@ -1024,7 +1024,7 @@ static struct inf_file *parse_file( HANDLE handle, const WCHAR *class, DWORD sty
UnmapViewOfFile( buffer ); UnmapViewOfFile( buffer );
if (err) if (err)
{ {
free_inf_file( file ); if (file) free_inf_file( file );
SetLastError( err ); SetLastError( err );
file = NULL; file = NULL;
} }