Changeset 725


Ignore:
Timestamp:
12/6/2008 1:57:04 AM (6 years ago)
Author:
lowjoel
Message:

Fixed an array out of bounds error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/ShellExt/CtxMenu.cpp

    r722 r725  
    360360 
    361361        //Get the command string for the given id 
    362         if (idCmd > VerbMenuIndices.size()) 
     362        if (idCmd >= VerbMenuIndices.size()) 
    363363            return E_INVALIDARG; 
    364364 
     
    396396        //If the verb index refers to an item outside the bounds of our VerbMenuIndices 
    397397        //vector, exit. 
    398         if (LOWORD(pCmdInfo->lpVerb) > VerbMenuIndices.size()) 
     398        if (LOWORD(pCmdInfo->lpVerb) >= VerbMenuIndices.size()) 
    399399            return E_INVALIDARG; 
    400400 
Note: See TracChangeset for help on using the changeset viewer.