Skip to content

Commit

Permalink
Fix crash issue with runPluginCommand
Browse files Browse the repository at this point in the history
menuName is NULL when called from runPluginCommand
Need to get some test coverage on the MenuManager from C++ level
  • Loading branch information
bruderstein committed Apr 21, 2014
1 parent 650ef89 commit dfc7019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PythonScript/src/MenuManager.cpp
Expand Up @@ -969,7 +969,7 @@ idx_t MenuManager::findMenuCommand(HMENU hParentMenu, const TCHAR *parentMenuNam
}
}
}
else if(0 == _tcsicmp(parentMenuName, menuName))
else if(NULL == menuName || 0 == _tcsicmp(parentMenuName, menuName))
{
TCHAR *context = NULL;
TCHAR *name = _tcstok_s(strBuffer, _T("\t"), &context);
Expand Down

0 comments on commit dfc7019

Please sign in to comment.