kernel32: Don't free a NULL / not yet allocated pointer (PVS-Studio).
This commit is contained in:
parent
cd1e969b28
commit
a7daccb674
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue