Author: dquintana Date: Wed Mar 5 13:57:02 2014 New Revision: 62433
URL: http://svn.reactos.org/svn/reactos?rev=62433&view=rev Log: [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.
Modified: branches/shell-experiments/base/shell/explorer-new/taskband.c
Modified: branches/shell-experiments/base/shell/explorer-new/taskband.c URL: http://svn.reactos.org/svn/reactos/branches/shell-experiments/base/shell/exp... ============================================================================== --- branches/shell-experiments/base/shell/explorer-new/taskband.c [iso-8859-1] (original) +++ branches/shell-experiments/base/shell/explorer-new/taskband.c [iso-8859-1] Wed Mar 5 13:57:02 2014 @@ -596,18 +596,15 @@ IN HWND hWnd) { ITaskBandImpl *This = ITaskBandImpl_from_IWinEventHandler(iface); - HRESULT hRet = S_OK; - - if (This->hWnd != hWnd || - !IsChild(This->hWnd, - hWnd)) - { - hRet = S_FALSE; - } - - DbgPrint("ITaskBand::ContainsWindow(0x%p) returns %s\n", hWnd, hRet == S_OK ? "S_OK" : "S_FALSE"); - - return hRet; + + if (This->hWnd == hWnd || + IsChild(This->hWnd, hWnd)) + { + DbgPrint("ITaskBand::ContainsWindow(0x%p) returns S_OK\n", hWnd); + return S_OK; + } + + return S_FALSE; }
static const IWinEventHandlerVtbl IWinEventHandlerImpl_Vtbl =