From 25bb0d3a6f6c3a2184b240b701b1e32d1f8f49f4 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Thu, 23 Apr 2015 18:54:56 +0000 Subject: [PATCH] [BROWSEUI] Fix back and forward buttons so they work correctly. Brought to you by Fedor Zaytsev with an improvement suggested by Aleksey. CORE-8894 svn path=/trunk/; revision=67371 --- reactos/dll/win32/browseui/shellbrowser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/browseui/shellbrowser.cpp b/reactos/dll/win32/browseui/shellbrowser.cpp index f987469a532..a30e87fb27a 100644 --- a/reactos/dll/win32/browseui/shellbrowser.cpp +++ b/reactos/dll/win32/browseui/shellbrowser.cpp @@ -127,6 +127,7 @@ struct categoryCacheHeader }; 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; @@ -3001,7 +3002,7 @@ HRESULT STDMETHODCALLTYPE CShellBrowser::LoadHistory(IStream *pStream, IBindCtx 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;