d3dx9: Fix an error check in D3DXLoadMeshFromXResource.

Matteo Bruni matteo.mystral at gmail.com
Tue Jul 19 09:26:41 CDT 2011


-------------- next part --------------
From 29a6cd63781cdfdf30ce11c83e08aea734d90419 Mon Sep 17 00:00:00 2001
From: Matteo Bruni <mbruni at codeweavers.com>
Date: Tue, 19 Jul 2011 16:15:36 +0200
Subject: d3dx9: Fix an error check in D3DXLoadMeshFromXResource.

---
 dlls/d3dx9_36/mesh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c
index 94a291f..0d17941 100644
--- a/dlls/d3dx9_36/mesh.c
+++ b/dlls/d3dx9_36/mesh.c
@@ -3376,7 +3376,7 @@ HRESULT WINAPI D3DXLoadMeshFromXResource(HMODULE module,
     if (!resinfo) return D3DXERR_INVALIDDATA;
 
     hr = load_resource_into_memory(module, resinfo, &buffer, &size);
-    if (!FAILED(hr)) return D3DXERR_INVALIDDATA;
+    if (FAILED(hr)) return D3DXERR_INVALIDDATA;
 
     return D3DXLoadMeshFromXInMemory(buffer, size, options, device, adjacency,
             materials, effect_instances, num_materials, mesh);
-- 
1.7.3.4


More information about the wine-patches mailing list