Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakym (たかやま) <15681312+Takym@users.noreply.github.com>2021-06-14 14:46:13 +0300
committerGitHub <noreply@github.com>2021-06-14 14:46:13 +0300
commita87bc705c11b5f8cd81d6b6ba02ae1690a33b3df (patch)
treecae73566b83b61298ec3f20ea0d31433c07ce3fa /src/coreclr/classlibnative
parent8a9a24bde1155048da39ebd0cea9274ec2cbc86b (diff)
Change `pThisRef->GetMethodTable()` to `pThisMT`. (#54138)
Diffstat (limited to 'src/coreclr/classlibnative')
-rw-r--r--src/coreclr/classlibnative/bcltype/objectnative.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coreclr/classlibnative/bcltype/objectnative.cpp b/src/coreclr/classlibnative/bcltype/objectnative.cpp
index 80023e27a9d..5ecbdc3b0c3 100644
--- a/src/coreclr/classlibnative/bcltype/objectnative.cpp
+++ b/src/coreclr/classlibnative/bcltype/objectnative.cpp
@@ -163,8 +163,8 @@ FCIMPL2(FC_BOOL_RET, ObjectNative::Equals, Object *pThisRef, Object *pCompareRef
FC_RETURN_BOOL(FALSE);
// Compare the contents (size - vtable - sync block index).
- DWORD dwBaseSize = pThisRef->GetMethodTable()->GetBaseSize();
- if(pThisRef->GetMethodTable() == g_pStringClass)
+ DWORD dwBaseSize = pThisMT->GetBaseSize();
+ if(pThisMT == g_pStringClass)
dwBaseSize -= sizeof(WCHAR);
BOOL ret = memcmp(
(void *) (pThisRef+1),