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:
kichik 2006-03-07 14:02:35 +00:00
parent b4413ab821
commit b4143baf7f

View file

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