Workaround session loss problem due to Dell SupportAssist's bug#14858
Workaround session loss problem due to Dell SupportAssist's bug#14858donho wants to merge 2 commits intonotepad-plus-plus:masterfrom
Conversation
This commit doesn't really "fix" the issue notepad-plus-plus#14781. Instead, it provides a workaround: In case of "session.xml" being corrupted after the power outrages, user can get "session.xml.inCaseOfCorruption.bak" - the before last session.xml backup file. Fix notepad-plus-plus#14781
|
@donho , |
|
@donho
One more general note - improper use of the the PathFileExists WINAPI in the Edit: When you will be doing some changes in the code - there is one typo: isAllLaoded |
|
@xomx
Done in the latest commit.
Fixed in the latest commit - tested also with your debug break point way then modify session.xml.
Done in the latest commit - it detects more the session file error indeed.
Good thinking!
NppParameters::loadSession()
Done in the latest commit. |
|
@donho The N++ startup notepad-plus-plus/PowerEditor/src/ScintillaComponent/Buffer.cpp Lines 1080 to 1083 in 0bc28df Also it should check for a possible ReplaceFile error return. |
This PR doesn't really "fix" the issue #14781. Instead, it provides a workaround:
In case of "session.xml" being corrupted after the power outrages, user can get "session.xml.inCaseOfCorruption.bak" - the before last session.xml backup file.
Fix #14781