fixed bug #1504297 - .onVerifyInstDir changes browsing text
script executed in .onVerifyInstDir changes ps_tmpbuf which is returned by GetNSISStringTT and is used for the browsing text git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4694 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
4e2f8c1558
commit
70e426839a
1 changed files with 2 additions and 1 deletions
|
@ -945,13 +945,14 @@ static BOOL CALLBACK DirProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
|
||||||
}
|
}
|
||||||
if (id == IDC_BROWSE)
|
if (id == IDC_BROWSE)
|
||||||
{
|
{
|
||||||
|
static char bt[NSIS_MAX_STRLEN];
|
||||||
BROWSEINFO bi = {0,};
|
BROWSEINFO bi = {0,};
|
||||||
ITEMIDLIST *idlist;
|
ITEMIDLIST *idlist;
|
||||||
bi.hwndOwner = hwndDlg;
|
bi.hwndOwner = hwndDlg;
|
||||||
bi.pszDisplayName = g_tmp;
|
bi.pszDisplayName = g_tmp;
|
||||||
bi.lpfn = BrowseCallbackProc;
|
bi.lpfn = BrowseCallbackProc;
|
||||||
bi.lParam = (LPARAM)dir;
|
bi.lParam = (LPARAM)dir;
|
||||||
bi.lpszTitle = GetNSISStringTT(browse_text);
|
bi.lpszTitle = GetNSISString(bt, browse_text);
|
||||||
bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE;
|
bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE;
|
||||||
idlist = SHBrowseForFolder(&bi);
|
idlist = SHBrowseForFolder(&bi);
|
||||||
if (idlist)
|
if (idlist)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue