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@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d343371cbc
commit
577644f3c1
|
@ -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)){
|
||||
|
|
Loading…
Reference in New Issue