[BUG_FiXED] (Author: Andreas Jonsson) Fix a behavior issue on Windows shutdown.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@949 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2012-08-31 21:11:27 +00:00
parent 0011deec48
commit 75ccf352d4

View File

@ -1465,11 +1465,18 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
saveSession(currentSession);
//Sends WM_DESTROY, Notepad++ will end
::DestroyWindow(hwnd);
if(Message == WM_CLOSE)
::DestroyWindow(hwnd);
}
return TRUE;
}
case WM_ENDSESSION:
{
::DestroyWindow(hwnd);
return TRUE;
}
case WM_DESTROY:
{
killAllChildren();