diff --git a/Contrib/StartMenu/StartMenu.c b/Contrib/StartMenu/StartMenu.c index ca61264e..6bfc7901 100644 --- a/Contrib/StartMenu/StartMenu.c +++ b/Contrib/StartMenu/StartMenu.c @@ -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: