d3dx9_36: Fix the return value in error cases in d3dx9_parse_resource.
Gerald Pfeifer
gerald at pfeifer.com
Wed Jun 15 14:01:22 CDT 2011
Without this, hr will be returned in both cases which is uninitialized.
Gerald
---
dlls/d3dx9_36/effect.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c
index 271594c..3265037 100644
--- a/dlls/d3dx9_36/effect.c
+++ b/dlls/d3dx9_36/effect.c
@@ -4733,12 +4733,14 @@ static HRESULT d3dx9_parse_resource(struct ID3DXBaseEffectImpl *base, const char
default:
FIXME("Unhandled type %s\n", debug_d3dxparameter_type(param->type));
+ hr=E_FAIL;
break;
}
break;
default:
FIXME("Unknown usage %x\n", usage);
+ hr=E_FAIL;
break;
}
--
1.7.4.1
More information about the wine-patches
mailing list