diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c index e03b503822d..bc3b2f59021 100644 --- a/dlls/ole32/defaulthandler.c +++ b/dlls/ole32/defaulthandler.c @@ -1422,7 +1422,7 @@ HRESULT WINAPI OleCreateDefaultHandler( * This is necessary because it's the only time the non-delegating * IUnknown pointer can be returned to the outside. */ - if (pUnkOuter && IsEqualIID(&IID_IUnknown, riid)) + if (pUnkOuter && !IsEqualIID(&IID_IUnknown, riid)) return CLASS_E_NOAGGREGATION; /*