[BUG_FIXED] (Author: Andreas Jonsson) Fix macro replaying crash issue.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1095 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2013-08-02 09:01:44 +00:00
parent 3f9b573aad
commit 75166f6596

View File

@ -631,7 +631,10 @@ void recordedMacroStep::PlayBack(Window* pNotepad, ScintillaEditView *pEditView)
scnN.nmhdr.code = SCN_CHARADDED;
scnN.nmhdr.hwndFrom = pEditView->getHSelf();
scnN.nmhdr.idFrom = 0;
scnN.ch = sParameter.at(0);
if(sParameter.empty())
scnN.ch = 0;
else
scnN.ch = sParameter.at(0);
::SendMessage(pNotepad->getHSelf(), WM_NOTIFY, 0, reinterpret_cast<LPARAM>(&scnN));
}
}