Huw Davies : ole32: Test the result of IRunningObjectTable_GetObject against S_OK.
Module: wine Branch: master Commit: 577644f3c1db5ddd74a22282698286b33a6b6fbb URL: http://source.winehq.org/git/wine.git/?a=commit;h=577644f3c1db5ddd74a2228269... Author: Huw Davies <huw(a)codeweavers.com> Date: Fri Oct 9 11:13:22 2015 +0100 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 <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 c9b4e50..6474d9a 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)){
participants (1)
-
Alexandre Julliard