From 47419910f6bc6374956097f884e89aa9e5991d37 Mon Sep 17 00:00:00 2001 From: Udo Hoffmann Date: Sat, 31 Oct 2020 13:32:24 +0100 Subject: [PATCH] Fix crash while exit command issued by plugin Fix #9082, close #9084 --- PowerEditor/src/NppCommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/NppCommands.cpp b/PowerEditor/src/NppCommands.cpp index 3e00dc6f..79861014 100644 --- a/PowerEditor/src/NppCommands.cpp +++ b/PowerEditor/src/NppCommands.cpp @@ -272,7 +272,7 @@ void Notepad_plus::command(int id) break; case IDM_FILE_EXIT: - ::SendMessage(_pPublicInterface->getHSelf(), WM_CLOSE, 0, 0); + ::PostMessage(_pPublicInterface->getHSelf(), WM_CLOSE, 0, 0); break; case IDM_EDIT_UNDO: