[BROWSEUI] Fix back and forward buttons so they work correctly. Brought to you by...
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 23 Apr 2015 18:54:56 +0000 (18:54 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 23 Apr 2015 18:54:56 +0000 (18:54 +0000)
svn path=/trunk/; revision=67371

reactos/dll/win32/browseui/shellbrowser.cpp

index f987469..a30e87f 100644 (file)
@@ -127,6 +127,7 @@ struct categoryCacheHeader
 };
 
 static const unsigned int                   folderOptionsPageCountMax = 20;
 };
 
 static const unsigned int                   folderOptionsPageCountMax = 20;
+static const long                           BTP_DONT_UPDATE_HISTORY = 0;
 static const long                           BTP_UPDATE_CUR_HISTORY = 1;
 static const long                           BTP_UPDATE_NEXT_HISTORY = 2;
 
 static const long                           BTP_UPDATE_CUR_HISTORY = 1;
 static const long                           BTP_UPDATE_NEXT_HISTORY = 2;
 
@@ -3001,7 +3002,7 @@ HRESULT STDMETHODCALLTYPE CShellBrowser::LoadHistory(IStream *pStream, IBindCtx
     fHistoryObject = viewHistoryObject;
     fHistoryStream = pStream;
     fHistoryBindContext = pbc;
     fHistoryObject = viewHistoryObject;
     fHistoryStream = pStream;
     fHistoryBindContext = pbc;
-    hResult = BrowseToPIDL(pidl, BTP_UPDATE_CUR_HISTORY);
+    hResult = BrowseToPIDL(pidl, BTP_DONT_UPDATE_HISTORY);
     fHistoryObject = NULL;
     fHistoryStream = NULL;
     fHistoryBindContext = NULL;
     fHistoryObject = NULL;
     fHistoryStream = NULL;
     fHistoryBindContext = NULL;