We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3be0a98 commit 1ce219aCopy full SHA for 1ce219a
1 file changed
PythonScript/src/MenuManager.cpp
@@ -250,6 +250,9 @@ HMENU MenuManager::getOurMenu()
250
int iMenuItems = GetMenuItemCount(hPluginMenu);
251
for ( int i = 0; i < iMenuItems; i++ )
252
{
253
+ //lint -e650
254
+ // Thanks MS for having a function that returns a UNIT potentially returning -1 >:-(
255
+ // How that makes sense is beyond me.
256
HMENU hSubMenu = ::GetSubMenu(hPluginMenu, i);
257
// does our About menu command exist here?
258
if ( ::GetMenuState(hSubMenu, m_funcItems[0]._cmdID, MF_BYCOMMAND) != -1 )
@@ -258,6 +261,7 @@ HMENU MenuManager::getOurMenu()
261
m_pythonPluginMenu = hSubMenu;
259
262
break;
260
263
}
264
+ //lint +e650
265
266
267
0 commit comments