[PATCH 2/4] Fix assumption about HRESULT failure code value
Nikolay Sivov
nsivov at codeweavers.com
Wed Jul 21 05:07:03 CDT 2010
---
dlls/ole32/git.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ole32/git.c b/dlls/ole32/git.c
index e961f90..3800de0 100644
--- a/dlls/ole32/git.c
+++ b/dlls/ole32/git.c
@@ -187,9 +187,9 @@ StdGlobalInterfaceTable_RegisterInterfaceInGlobal(
TRACE("About to marshal the interface\n");
hres = CreateStreamOnHGlobal(0, TRUE, &stream);
- if (hres) return hres;
+ if (hres != S_OK) return hres;
hres = CoMarshalInterface(stream, riid, pUnk, MSHCTX_INPROC, NULL, MSHLFLAGS_TABLESTRONG);
- if (hres)
+ if (hres != S_OK)
{
IStream_Release(stream);
return hres;
@@ -281,7 +281,7 @@ StdGlobalInterfaceTable_GetInterfaceFromGlobal(
LeaveCriticalSection(&git_section);
- if (hres) {
+ if (hres != S_OK) {
WARN("Failed to clone stream with error 0x%08x\n", hres);
return hres;
}
--
1.5.6.5
--------------070104070500060602090402--
More information about the wine-patches
mailing list