winemenubuilder: Check for NULL allocation (Coverity).
This commit is contained in:
parent
6fa9fa15da
commit
b123102ae5
|
@ -724,6 +724,7 @@ static char* heap_printf(const char *format, ...)
|
||||||
HeapFree(GetProcessHeap(), 0, buffer);
|
HeapFree(GetProcessHeap(), 0, buffer);
|
||||||
}
|
}
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
if (!buffer) return NULL;
|
||||||
ret = HeapReAlloc(GetProcessHeap(), 0, buffer, strlen(buffer) + 1 );
|
ret = HeapReAlloc(GetProcessHeap(), 0, buffer, strlen(buffer) + 1 );
|
||||||
if (!ret) ret = buffer;
|
if (!ret) ret = buffer;
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue