From 46ccbc43af6d273253ba09de5f5108cb79fda002 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 11 Jun 2008 03:36:21 +0000 Subject: [PATCH] Fix a small bug svn path=/trunk/; revision=33923 --- reactos/base/shell/explorer-new/tbsite.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/base/shell/explorer-new/tbsite.c b/reactos/base/shell/explorer-new/tbsite.c index d402c02f5cf..7b0774f1cfa 100644 --- a/reactos/base/shell/explorer-new/tbsite.c +++ b/reactos/base/shell/explorer-new/tbsite.c @@ -573,6 +573,8 @@ ITrayBandSiteImpl_QueryBand(IN OUT IBandSite *iface, if (ppstb != NULL) *ppstb = pstb; } + else if (ppstb != NULL) + *ppstb = NULL; return hRet; } @@ -730,7 +732,7 @@ ITrayBandSiteImpl_BroadcastOleCommandExec(IN OUT ITrayBandSiteImpl *This, &dwBandID))) { if (SUCCEEDED(IBandSite_GetBandObject(This->BandSite, - uBand, + dwBandID, &IID_IOleCommandTarget, (PVOID*)&pOct))) {