Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit d64c7d6

Browse files
mazong1123jkotas
authored andcommitted
Remove unnecessary assert. (#7889)
Remvoe the unneccessary assert that might cause a bug. fix #6856
1 parent e507c28 commit d64c7d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vm/commodule.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,7 @@ mdString QCALLTYPE COMModule::GetStringConstant(QCall::ModuleHandle pModule, LPC
768768
_ASSERTE(pwzValue != NULL);
769769

770770
HRESULT hr = pRCW->GetEmitter()->DefineUserString(pwzValue, iLength, &strRef);
771-
if (FAILED(hr)) {
772-
_ASSERTE(hr == E_OUTOFMEMORY || !"Unknown failure in DefineUserString");
771+
if (FAILED(hr)) {
773772
COMPlusThrowHR(hr);
774773
}
775774

0 commit comments

Comments
 (0)