diff options
Diffstat (limited to 'src/dlls/mscoree/unixinterface.cpp')
-rw-r--r-- | src/dlls/mscoree/unixinterface.cpp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/dlls/mscoree/unixinterface.cpp b/src/dlls/mscoree/unixinterface.cpp index 8d75ff2721..edd361c0c2 100644 --- a/src/dlls/mscoree/unixinterface.cpp +++ b/src/dlls/mscoree/unixinterface.cpp @@ -247,21 +247,23 @@ int coreclr_initialize( host.SuppressRelease(); *hostHandle = host; #ifdef FEATURE_GDBJIT - - hr = coreclr_create_delegate(*hostHandle, - *domainId, - "SOS.NETCore", - "SOS.SymbolReader", - "GetInfoForMethod", - (void**)&getInfoForMethodDelegate); - - if (!SUCCEEDED(hr)) + HRESULT createDelegateResult; + createDelegateResult = coreclr_create_delegate(*hostHandle, + *domainId, + "SOS.NETCore", + "SOS.SymbolReader", + "GetInfoForMethod", + (void**)&getInfoForMethodDelegate); + +#if defined(_DEBUG) + if (!SUCCEEDED(createDelegateResult)) { fprintf(stderr, - "Can't create delegate for 'System.Diagnostics.Debug.SymbolReader.SymbolReader.GetInfoForMethod' " - "method - status: 0x%08x\n", hr); + "Can't create delegate for 'SOS.SymbolReader.GetInfoForMethod' " + "method - status: 0x%08x\n", createDelegateResult); } - hr = S_OK; // We don't need to fail if we can't create delegate +#endif // _DEBUG + #endif } return hr; |