mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 06:06:27 +00:00
[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:
parent
bccac1a15b
commit
25bb0d3a6f
|
@ -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_CUR_HISTORY = 1;
|
||||||
static const long BTP_UPDATE_NEXT_HISTORY = 2;
|
static const long BTP_UPDATE_NEXT_HISTORY = 2;
|
||||||
|
|
||||||
|
@ -3001,7 +3002,7 @@ HRESULT STDMETHODCALLTYPE CShellBrowser::LoadHistory(IStream *pStream, IBindCtx
|
||||||
fHistoryObject = viewHistoryObject;
|
fHistoryObject = viewHistoryObject;
|
||||||
fHistoryStream = pStream;
|
fHistoryStream = pStream;
|
||||||
fHistoryBindContext = pbc;
|
fHistoryBindContext = pbc;
|
||||||
hResult = BrowseToPIDL(pidl, BTP_UPDATE_CUR_HISTORY);
|
hResult = BrowseToPIDL(pidl, BTP_DONT_UPDATE_HISTORY);
|
||||||
fHistoryObject = NULL;
|
fHistoryObject = NULL;
|
||||||
fHistoryStream = NULL;
|
fHistoryStream = NULL;
|
||||||
fHistoryBindContext = NULL;
|
fHistoryBindContext = NULL;
|
||||||
|
|
Loading…
Reference in a new issue