Commit b123102a authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

winemenubuilder: Check for NULL allocation (Coverity).

parent 6fa9fa15
......@@ -724,6 +724,7 @@ static char* heap_printf(const char *format, ...)
HeapFree(GetProcessHeap(), 0, buffer);
}
va_end(args);
if (!buffer) return NULL;
ret = HeapReAlloc(GetProcessHeap(), 0, buffer, strlen(buffer) + 1 );
if (!ret) ret = buffer;
return ret;
......
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