Commit a7daccb6 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent cd1e969b
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment