File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1981,7 +1981,7 @@ HRESULT CLR_RT_ExecutionEngine::InitializeLocals(
19811981
19821982 // ensure we don’t walk past the available generic parameters
19831983 const int maxParams = parser.GenParamCount ;
1984- if (genericParamPosition < 0 || genericParamPosition >= maxParams)
1984+ if (genericParamPosition < 0 || genericParamPosition > maxParams)
19851985 {
19861986 NANOCLR_SET_AND_LEAVE (CLR_E_OUT_OF_RANGE);
19871987 }
@@ -1990,7 +1990,7 @@ HRESULT CLR_RT_ExecutionEngine::InitializeLocals(
19901990 parser.Advance (element);
19911991
19921992 // walk forward to the Nth generic-parameter
1993- for (int i = 0 ; i <= genericParamPosition; i++)
1993+ for (int i = 0 ; i < genericParamPosition; i++)
19941994 {
19951995 parser.Advance (element);
19961996 }
Original file line number Diff line number Diff line change @@ -2858,7 +2858,7 @@ bool CLR_DBG_Debugger::Debugging_Value_GetStack(WP_Message *msg)
28582858
28592859 // now we've landed on a DATATYPE_VAR; walk to the Nth generic‐type parameter
28602860 typeParser.Advance (elem);
2861- for (int i = 0 ; i <= res.GenericParamPosition ; i++)
2861+ for (int i = 0 ; i < res.GenericParamPosition ; i++)
28622862 {
28632863 parser.Advance (elem);
28642864 }
You can’t perform that action at this time.
0 commit comments