Fix crash while exit command issued by plugin

Fix #9082, close #9084
This commit is contained in:
Udo Hoffmann 2020-10-31 13:32:24 +01:00 committed by Don HO
parent c28116a04f
commit 47419910f6
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -272,7 +272,7 @@ void Notepad_plus::command(int id)
break; break;
case IDM_FILE_EXIT: case IDM_FILE_EXIT:
::SendMessage(_pPublicInterface->getHSelf(), WM_CLOSE, 0, 0); ::PostMessage(_pPublicInterface->getHSelf(), WM_CLOSE, 0, 0);
break; break;
case IDM_EDIT_UNDO: case IDM_EDIT_UNDO: