summaryrefslogtreecommitdiff
path: root/src/vm/marshalnative.cpp
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2019-01-01 12:15:49 -1000
committerGitHub <noreply@github.com>2019-01-01 12:15:49 -1000
commit6a3f7e1903c503165b1fbf2e82d2e777453ca8e5 (patch)
treead455dd8b5b3cb8cf958917a73d6117b9ad3059e /src/vm/marshalnative.cpp
parentc6c48260173ab7d22d599e60f7ca98e0cfc06ec4 (diff)
downloadcoreclr-6a3f7e1903c503165b1fbf2e82d2e777453ca8e5.tar.gz
coreclr-6a3f7e1903c503165b1fbf2e82d2e777453ca8e5.tar.bz2
coreclr-6a3f7e1903c503165b1fbf2e82d2e777453ca8e5.zip
Cleanup ArgumentNull_Obj references in unmanaged runtime (#21738)
Diffstat (limited to 'src/vm/marshalnative.cpp')
-rw-r--r--src/vm/marshalnative.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/vm/marshalnative.cpp b/src/vm/marshalnative.cpp
index 7614ddd6a0..a2cb827d34 100644
--- a/src/vm/marshalnative.cpp
+++ b/src/vm/marshalnative.cpp
@@ -1827,7 +1827,7 @@ FCIMPL2(void, MarshalNative::DoGetTypeLibGuid, GUID * result, Object* refTlbUNSA
GCPROTECT_BEGININTERIOR (result);
if (refTlb == NULL)
- COMPlusThrowArgumentNull(W("pTLB"), W("ArgumentNull_Generic"));
+ COMPlusThrowArgumentNull(W("pTLB"));
// Ensure COM is started up.
EnsureComStarted();
@@ -1862,7 +1862,7 @@ FCIMPL1(LCID, MarshalNative::GetTypeLibLcid, Object* refTlbUNSAFE)
HELPER_METHOD_FRAME_BEGIN_RET_1(refTlb);
if (refTlb == NULL)
- COMPlusThrowArgumentNull(W("pTLB"), W("ArgumentNull_Generic"));
+ COMPlusThrowArgumentNull(W("pTLB"));
// Ensure COM is started up.
EnsureComStarted();
@@ -1896,7 +1896,7 @@ FCIMPL3(void, MarshalNative::GetTypeLibVersion, Object* refTlbUNSAFE, int *pMajo
HELPER_METHOD_FRAME_BEGIN_1(refTlb);
if (refTlb == NULL)
- COMPlusThrowArgumentNull(W("typeLibrary"), W("ArgumentNull_Generic"));
+ COMPlusThrowArgumentNull(W("typeLibrary"));
// Ensure COM is started up.
EnsureComStarted();
@@ -1931,7 +1931,7 @@ FCIMPL2(void, MarshalNative::DoGetTypeInfoGuid, GUID * result, Object* refTypeIn
GCPROTECT_BEGININTERIOR (result);
if (refTypeInfo == NULL)
- COMPlusThrowArgumentNull(W("typeInfo"), W("ArgumentNull_Generic"));
+ COMPlusThrowArgumentNull(W("typeInfo"));
// Ensure COM is started up.
EnsureComStarted();
@@ -2020,7 +2020,7 @@ FCIMPL1(int, MarshalNative::GetStartComSlot, ReflectClassBaseObject* tUNSAFE)
HELPER_METHOD_FRAME_BEGIN_RET_1(t);
if (!(t))
- COMPlusThrow(kArgumentNullException, W("ArgumentNull_Generic"));
+ COMPlusThrow(kArgumentNullException);
MethodTable *pTMT = t->GetMethodTable();
if (pTMT != g_pRuntimeTypeClass)
@@ -2028,7 +2028,7 @@ FCIMPL1(int, MarshalNative::GetStartComSlot, ReflectClassBaseObject* tUNSAFE)
MethodTable *pMT = t->GetType().GetMethodTable();
if (NULL == pMT)
- COMPlusThrow(kArgumentNullException, W("ArgumentNull_Generic"));
+ COMPlusThrow(kArgumentNullException);
// The service does not make any sense to be called for non COM visible types.
if (!::IsTypeVisibleFromCom(TypeHandle(pMT)))
@@ -2053,7 +2053,7 @@ FCIMPL1(int, MarshalNative::GetEndComSlot, ReflectClassBaseObject* tUNSAFE)
int StartSlot = -1;
if (!(t))
- COMPlusThrow(kArgumentNullException, W("ArgumentNull_Generic"));
+ COMPlusThrow(kArgumentNullException);
MethodTable *pTMT = t->GetMethodTable();
if (pTMT != g_pRuntimeTypeClass)
@@ -2062,7 +2062,7 @@ FCIMPL1(int, MarshalNative::GetEndComSlot, ReflectClassBaseObject* tUNSAFE)
TypeHandle classTH = t->GetType();
MethodTable *pMT = classTH.GetMethodTable();
if (NULL == pMT)
- COMPlusThrow(kArgumentNullException, W("ArgumentNull_Generic"));
+ COMPlusThrow(kArgumentNullException);
// The service does not make any sense to be called for non COM visible types.
if (!::IsTypeVisibleFromCom(classTH))
@@ -2131,7 +2131,7 @@ FCIMPL3(Object*, MarshalNative::GetMethodInfoForComSlot, ReflectClassBaseObject*
OBJECTREF MemberInfoObj = NULL;
if (!(t))
- COMPlusThrow(kArgumentNullException, W("ArgumentNull_Generic"));
+ COMPlusThrow(kArgumentNullException);
MethodTable *pTMT = t->GetMethodTable();
if (pTMT != g_pRuntimeTypeClass)
@@ -2140,7 +2140,7 @@ FCIMPL3(Object*, MarshalNative::GetMethodInfoForComSlot, ReflectClassBaseObject*
TypeHandle type = t->GetType();
MethodTable *pMT= type.GetMethodTable();
if (NULL == pMT)
- COMPlusThrow(kArgumentNullException, W("ArgumentNull_Generic"));
+ COMPlusThrow(kArgumentNullException);
// The service does not make any sense to be called for non COM visible types.
if (!::IsTypeVisibleFromCom(type))