Fix macro playback crash issue

The crash issue is due to a mutex locked twice which should be a dead lock but a "device or resource busy" exception is lauched:
https://stackoverflow.com/questions/16664375/why-locking-a-stdmutex-doesnt-block-the-thread

From 7.8 the standard mutex is used, that changes the behaviour.
This commit is contained in:
Don HO 2019-10-02 02:56:06 +02:00
parent c92b3ca578
commit fcaef73769
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -47,8 +47,6 @@ std::mutex command_mutex;
void Notepad_plus::macroPlayback(Macro macro) void Notepad_plus::macroPlayback(Macro macro)
{ {
std::lock_guard<std::mutex> lock(command_mutex);
_playingBackMacro = true; _playingBackMacro = true;
_pEditView->execute(SCI_BEGINUNDOACTION); _pEditView->execute(SCI_BEGINUNDOACTION);