d3dx9_36: Fixed typo in HeapAlloc return checking (Coverity).
This commit is contained in:
parent
5ce8c7a5a7
commit
20ef8d2991
|
@ -3687,7 +3687,7 @@ static BOOL compute_text_mesh(struct mesh *mesh, HDC hdc, const char *text,
|
|||
}
|
||||
HeapFree(GetProcessHeap(), 0, raw_outline);
|
||||
raw_outline = HeapAlloc(GetProcessHeap(), 0, datasize);
|
||||
if (!glyphs) {
|
||||
if (!raw_outline) {
|
||||
hr = E_OUTOFMEMORY;
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue