Fix a small bug

svn path=/trunk/; revision=33923
This commit is contained in:
Thomas Bluemel 2008-06-11 03:36:21 +00:00
parent 93c1e5a013
commit 46ccbc43af

View file

@ -573,6 +573,8 @@ ITrayBandSiteImpl_QueryBand(IN OUT IBandSite *iface,
if (ppstb != NULL) if (ppstb != NULL)
*ppstb = pstb; *ppstb = pstb;
} }
else if (ppstb != NULL)
*ppstb = NULL;
return hRet; return hRet;
} }
@ -730,7 +732,7 @@ ITrayBandSiteImpl_BroadcastOleCommandExec(IN OUT ITrayBandSiteImpl *This,
&dwBandID))) &dwBandID)))
{ {
if (SUCCEEDED(IBandSite_GetBandObject(This->BandSite, if (SUCCEEDED(IBandSite_GetBandObject(This->BandSite,
uBand, dwBandID,
&IID_IOleCommandTarget, &IID_IOleCommandTarget,
(PVOID*)&pOct))) (PVOID*)&pOct)))
{ {