Matteo Bruni : d3dx9: Fix an error check in D3DXLoadMeshFromXResource.

Alexandre Julliard julliard at winehq.org
Tue Jul 19 12:42:55 CDT 2011


Module: wine
Branch: master
Commit: c4d29bdb18e93a042c41610d335112d5872b6450
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c4d29bdb18e93a042c41610d335112d5872b6450

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Tue Jul 19 16:15:36 2011 +0200

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);




More information about the wine-cvs mailing list