[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
This commit is contained in:
Amine Khaldi 2015-04-23 18:54:56 +00:00
parent bccac1a15b
commit 25bb0d3a6f

View file

@ -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;