From: Marcus Meissner Subject: [PATCH] d3dx9_36: fixed typo in heapalloc return checking (Coverity) Message-Id: <1406010295-15555-1-git-send-email-marcus@jet.franken.de> Date: Tue, 22 Jul 2014 08:24:55 +0200 1225831 Logically dead code obvious typo --- dlls/d3dx9_36/tests/mesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c index 4d11618..17c5d9c 100644 --- a/dlls/d3dx9_36/tests/mesh.c +++ b/dlls/d3dx9_36/tests/mesh.c @@ -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; } -- 1.8.4.5