[EU-FOSSA] Fix a crash bug on Macro execution with arbitrary parameters

This commit is contained in:
Don HO 2019-02-18 01:27:26 +01:00
parent 011aa960fb
commit 194475ce64

View File

@ -223,7 +223,13 @@ public:
virtual void init(HINSTANCE hInst, HWND hPere);
LRESULT execute(UINT Msg, WPARAM wParam=0, LPARAM lParam=0) const {
return _pScintillaFunc(_pScintillaPtr, Msg, wParam, lParam);
try {
return _pScintillaFunc(_pScintillaPtr, Msg, wParam, lParam);
}
catch (...)
{
return -1;
}
};
void activateBuffer(BufferID buffer);