From b1ab04fa8fbe3232189f022249d45dda7fdbc6a3 Mon Sep 17 00:00:00 2001 From: Aaron R Robinson Date: Mon, 8 Apr 2024 12:20:31 -0700 Subject: [PATCH] Remove invalid GCPROTECT for duplicate slot --- src/coreclr/vm/olevariant.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/coreclr/vm/olevariant.cpp b/src/coreclr/vm/olevariant.cpp index e4d9174dc3edcd..0531d17fe7c802 100644 --- a/src/coreclr/vm/olevariant.cpp +++ b/src/coreclr/vm/olevariant.cpp @@ -4756,11 +4756,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);