[PATCH] d3dx9_36: fixed typo in heapalloc return checking (Coverity)

Marcus Meissner marcus at jet.franken.de
Tue Jul 22 01:24:55 CDT 2014


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




More information about the wine-patches mailing list