Skip to content

Commit 0fddf10

Browse files
authored
Fix Interop get field (#3160)
***NO_CI***
1 parent a252c7a commit 0fddf10

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/CLR/Core/CLR_RT_Interop.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
//
22
// Copyright (c) .NET Foundation and Contributors
33
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
44
// See LICENSE file in the project root for full license information.
@@ -978,7 +978,8 @@ signed __int64 &Interop_Marshal_GetField_double(CLR_RT_HeapBlock *pThis, unsigne
978978
#endif
979979
UNSUPPORTED_TYPE &Interop_Marshal_GetField_UNSUPPORTED_TYPE(CLR_RT_HeapBlock *pThis, unsigned int fieldIndex)
980980
{
981-
return (UNSUPPORTED_TYPE &)(*((UNSUPPORTED_TYPE *)nullptr));
981+
static UNSUPPORTED_TYPE dummy;
982+
return dummy;
982983
}
983984
#ifdef __GNUC__
984985
#pragma GCC diagnostic pop

0 commit comments

Comments
 (0)