Diff

Differences From Artifact [762921dce6]:

To Artifact [78ececb9f4]:


307
308
309
310
311
312
313









314
315
316
317
318
319
320
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329







+
+
+
+
+
+
+
+
+







     * delete first to ensure we never end up with more than one.
     */
    for (i = 0; i < lenof(popup_menus); i++) {
	DeleteMenu(popup_menus[i].menu, IDM_RESTART, MF_BYCOMMAND);
	InsertMenu(popup_menus[i].menu, IDM_DUPSESS, MF_BYCOMMAND | MF_ENABLED,
		   IDM_RESTART, "&Restart Session");
    }

    /*
     * Unset the 'must_close_session' flag, or else we'll come
     * straight back here the next time we go round the main message
     * loop - which, worse still, will be immediately (without
     * blocking) because we've just triggered a WM_SETTEXT by the
     * window title change above.
     */
    must_close_session = FALSE;
}

int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
{
    WNDCLASS wndclass;
    MSG msg;
    HRESULT hr;