Commit d4779e20 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Bring up the File->Save dialog when receiving WM_QUERYENDSESSION.

parent c396cdcc
......@@ -149,6 +149,12 @@ static LRESULT WINAPI NOTEPAD_WndProc(HWND hWnd, UINT msg, WPARAM wParam,
}
break;
case WM_QUERYENDSESSION:
if (DoCloseFile()) {
return 1;
}
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment