ole32: Fix assumption about HRESULT failure code value.

This commit is contained in:
Nikolay Sivov 2010-07-21 14:07:03 +04:00 committed by Alexandre Julliard
parent 5185409144
commit 2f61e19156
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}