File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2368,7 +2368,6 @@ HRESULT CLR_RT_ExecutionEngine::InitializeLocals(
23682368
23692369 goto done;
23702370 }
2371-
23722371 case DATATYPE_MVAR:
23732372 {
23742373 // Method-level generic parameter (e.g., '!!T' in a generic method like Array.Empty<T>())
@@ -2606,13 +2605,16 @@ HRESULT CLR_RT_ExecutionEngine::NewObject(
26062605 // We do the decrement BEFORE the comparison because we want to stop short of the first field,
26072606 // the object descriptor (already initialized).
26082607 //
2608+
26092609 obj += totFields;
26102610 while (--totFields > 0 )
26112611 {
26122612 while (clsFields == 0 )
26132613 {
26142614 if (instSub.SwitchToParent () == false )
2615+ {
26152616 NANOCLR_SET_AND_LEAVE (CLR_E_FAIL);
2617+ }
26162618
26172619 clsFields = instSub.target ->instanceFieldsCount ;
26182620 target = nullptr ;
You can’t perform that action at this time.
0 commit comments