simpler prefixing code
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4553 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b4413ab821
commit
b4143baf7f
1 changed files with 7 additions and 5 deletions
|
@ -358,14 +358,16 @@ BOOL CALLBACK dlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
pushstring("cancel");
|
||||
else
|
||||
{
|
||||
GetWindowText(hwLocation, buf + 1, MAX_PATH);
|
||||
if (IsDlgButtonChecked(hwndDlg, IDC_CHECK) == BST_CHECKED)
|
||||
{
|
||||
short *sbuf = (short *) buf;
|
||||
*sbuf = *(short *) ">";
|
||||
buf[0] = '>';
|
||||
pushstring(buf);
|
||||
}
|
||||
else
|
||||
{
|
||||
pushstring(buf + 1);
|
||||
}
|
||||
else *buf = 0;
|
||||
GetWindowText(hwLocation, buf + (*buf ? 1 : 0), MAX_PATH);
|
||||
pushstring(buf);
|
||||
pushstring("success");
|
||||
}
|
||||
case WM_CTLCOLORSTATIC:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue