Issue: https://github.com/dotnet/runtime/issues/58525
Co-authored-by: Mike McLaughlin <mikem@microsoft.com>
msgStr += W(")");
}
#endif
-
ThrowHR(COR_E_BADIMAGEFORMAT, msgStr);
+#else // DACCESS_COMPILE
+ ThrowHR(COR_E_BADIMAGEFORMAT);
#endif // #ifndef DACCESS_COMPILE
}
NOINLINE
VOID ThrowBadFormatWorkerT(UINT resID, T * pImgObj DEBUGARG(__in_z const char *cond))
{
+#ifdef DACCESS_COMPILE
+ ThrowBadFormatWorker(resID, nullptr DEBUGARG(cond));
+#else
LPCWSTR tmpStr = GetPathForErrorMessagesT(pImgObj);
ThrowBadFormatWorker(resID, tmpStr DEBUGARG(cond));
+#endif
}