From 85e3c53a2134df72c72df5a1b03438c804006006 Mon Sep 17 00:00:00 2001 From: AngryGamer Date: Thu, 28 Jun 2018 02:18:28 -0700 Subject: [PATCH] Fix hanging problem while shutingdown and backup file is absent Fix #4295, fix #4276, close #4611 --- PowerEditor/src/NppBigSwitch.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PowerEditor/src/NppBigSwitch.cpp b/PowerEditor/src/NppBigSwitch.cpp index 99ee3c4c..0c5ed195 100644 --- a/PowerEditor/src/NppBigSwitch.cpp +++ b/PowerEditor/src/NppBigSwitch.cpp @@ -1766,6 +1766,9 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa //User cancelled the shutdown scnN.nmhdr.code = NPPN_CANCELSHUTDOWN; _pluginsManager.notify(&scnN); + + if (isSnapshotMode) + ::LockWindowUpdate(NULL); return FALSE; }