Skip to content

Commit

Permalink
Remove invalid GCPROTECT for duplicate slot (#100787)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronRobinsonMSFT authored Apr 9, 2024
1 parent fe6dc19 commit 79a4daf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/coreclr/vm/olevariant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4731,11 +4731,8 @@ void OleVariant::ConvertValueClassToVariant(OBJECTREF *pBoxedValueClass, VARIANT
// Marshal the contents of the value class into the record.
MethodDesc* pStructMarshalStub;
{
GCPROTECT_BEGIN(*pBoxedValueClass);
GCX_PREEMP();

pStructMarshalStub = NDirect::CreateStructMarshalILStub(pValueClassMT);
GCPROTECT_END();
}

MarshalStructViaILStub(pStructMarshalStub, (*pBoxedValueClass)->GetData(), (BYTE*)V_RECORD(pRecHolder), StructMarshalStubs::MarshalOperation::Marshal);
Expand Down

0 comments on commit 79a4daf

Please sign in to comment.