Author: weiden
Date: Tue Jun 10 22:36:21 2008
New Revision: 33923
URL: 
http://svn.reactos.org/svn/reactos?rev=33923&view=rev
Log:
Fix a small bug
Modified:
    trunk/reactos/base/shell/explorer-new/tbsite.c
Modified: trunk/reactos/base/shell/explorer-new/tbsite.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer-new/tb…
==============================================================================
--- trunk/reactos/base/shell/explorer-new/tbsite.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer-new/tbsite.c [iso-8859-1] Tue Jun 10 22:36:21 2008
@@ -573,6 +573,8 @@
         if (ppstb != NULL)
             *ppstb = pstb;
     }
+    else if (ppstb != NULL)
+        *ppstb = NULL;
     return hRet;
 }
@@ -730,7 +732,7 @@
                                          &dwBandID)))
     {
         if (SUCCEEDED(IBandSite_GetBandObject(This->BandSite,
-                                              uBand,
+                                              dwBandID,
                                               &IID_IOleCommandTarget,
                                               (PVOID*)&pOct)))
         {