From 577644f3c1db5ddd74a22282698286b33a6b6fbb Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Fri, 9 Oct 2015 11:13:22 +0100 Subject: [PATCH] ole32: Test the result of IRunningObjectTable_GetObject against S_OK. Typically it would return MK_E_UNAVAILABLE and not S_FALSE if the moniker is not registered. Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/ole32/filemoniker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/filemoniker.c b/dlls/ole32/filemoniker.c index c9b4e5049ec..6474d9a86b0 100644 --- a/dlls/ole32/filemoniker.c +++ b/dlls/ole32/filemoniker.c @@ -500,7 +500,7 @@ FileMonikerImpl_BindToObject(IMoniker* iface, IBindCtx* pbc, IMoniker* pmkToLeft /* if the requested class was loaded before ! we don't need to reload it */ res = IRunningObjectTable_GetObject(prot,iface,&pObj); - if (res==S_FALSE){ + if (res != S_OK){ /* first activation of this class */ res=GetClassFile(This->filePathName,&clsID); if (SUCCEEDED(res)){ -- 2.11.4.GIT