From f3964379b139459abb5e015407eb1446c7f24d4b Mon Sep 17 00:00:00 2001 From: David Quintana Date: Wed, 5 Mar 2014 13:57:02 +0000 Subject: [PATCH] [EXPLORER-NEW] * I don't know what this may fix, but it was wrong. On the upside, now there's less spam in the log. svn path=/branches/shell-experiments/; revision=62433 --- base/shell/explorer-new/taskband.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/base/shell/explorer-new/taskband.c b/base/shell/explorer-new/taskband.c index b884a7ae78f..bb84ff87099 100644 --- a/base/shell/explorer-new/taskband.c +++ b/base/shell/explorer-new/taskband.c @@ -596,18 +596,15 @@ IWinEventHandlerImpl_ContainsWindow(IN OUT IWinEventHandler *iface, IN HWND hWnd) { ITaskBandImpl *This = ITaskBandImpl_from_IWinEventHandler(iface); - HRESULT hRet = S_OK; - if (This->hWnd != hWnd || - !IsChild(This->hWnd, - hWnd)) + if (This->hWnd == hWnd || + IsChild(This->hWnd, hWnd)) { - hRet = S_FALSE; + DbgPrint("ITaskBand::ContainsWindow(0x%p) returns S_OK\n", hWnd); + return S_OK; } - DbgPrint("ITaskBand::ContainsWindow(0x%p) returns %s\n", hWnd, hRet == S_OK ? "S_OK" : "S_FALSE"); - - return hRet; + return S_FALSE; } static const IWinEventHandlerVtbl IWinEventHandlerImpl_Vtbl = -- 2.17.1