We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c658cf1 commit b0235cdCopy full SHA for b0235cd
src/CLR/Core/CLR_RT_HeapBlock.cpp
@@ -1362,12 +1362,24 @@ bool CLR_RT_HeapBlock::ObjectsEqual(
1362
// boxed primitive or enum type
1363
obj = &rightObj[1];
1364
}
1365
+ else
1366
+ {
1367
+ // boxed value type
1368
+ obj = rightObj;
1369
+ }
1370
1371
return ObjectsEqual(*leftObj, *obj, false);
1372
1373
else
1374
{
- return ObjectsEqual(*leftObj, *rightObj, false);
1375
+ if (rightObj == NULL)
1376
1377
+ return false;
1378
1379
1380
1381
+ return ObjectsEqual(*leftObj, *rightObj, false);
1382
1383
1384
1385
0 commit comments