kernel32: Don't free a NULL / not yet allocated pointer (PVS-Studio).

oldstable
Michael Stefaniuc 2015-03-09 10:29:57 +01:00 committed by Alexandre Julliard
parent cd1e969b28
commit a7daccb674
1 changed files with 0 additions and 1 deletions

View File

@ -933,7 +933,6 @@ DWORD WINAPI SearchPathW( LPCWSTR path, LPCWSTR name, LPCWSTR ext, DWORD buflen,
if (!search)
{
SetLastError( ERROR_OUTOFMEMORY );
HeapFree( GetProcessHeap(), 0, dll_path );
return 0;
}
strcpyW( search, name );