Marked internal menu commands as safe

This fixes soundfont/patchset/config selection menus in advanced sound options
This commit is contained in:
alexey.lysiuk 2018-01-30 16:02:30 +02:00
commit d9323b9740
3 changed files with 9 additions and 3 deletions

View file

@ -692,7 +692,8 @@ DEFINE_ACTION_FUNCTION(DOptionMenuItemCommand, DoCommand)
if (CurrentMenu == nullptr) return 0;
PARAM_PROLOGUE;
PARAM_STRING(cmd);
UnsafeExecutionScope scope;
PARAM_BOOL(unsafe);
UnsafeExecutionScope scope(unsafe);
C_DoCommand(cmd);
return 0;
}