From 70e426839a89b55883e8a8584b0b4e0da04df31c Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 16 Jun 2006 13:15:01 +0000 Subject: [PATCH] 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 --- Source/exehead/Ui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 201b87b2..00b89dda 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -945,13 +945,14 @@ static BOOL CALLBACK DirProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar } if (id == IDC_BROWSE) { + static char bt[NSIS_MAX_STRLEN]; BROWSEINFO bi = {0,}; ITEMIDLIST *idlist; bi.hwndOwner = hwndDlg; bi.pszDisplayName = g_tmp; bi.lpfn = BrowseCallbackProc; bi.lParam = (LPARAM)dir; - bi.lpszTitle = GetNSISStringTT(browse_text); + bi.lpszTitle = GetNSISString(bt, browse_text); bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE; idlist = SHBrowseForFolder(&bi); if (idlist)