Remove 'from HRESULT' (#22782)
authorDan Moseley <danmose@microsoft.com>
Sat, 23 Feb 2019 02:57:02 +0000 (18:57 -0800)
committerStephen Toub <stoub@microsoft.com>
Sat, 23 Feb 2019 02:57:02 +0000 (21:57 -0500)
src/dlls/mscorrc/mscorrc.rc
src/dlls/mscorrc/resource.h
src/utilcode/ex.cpp

index 6717d68..20612bb 100644 (file)
@@ -496,7 +496,6 @@ BEGIN
 STRINGTABLE DISCARDABLE 
 BEGIN
     CEE_E_CVTRES_NOT_FOUND                  "Could not execute CVTRES.EXE."
-    IDS_EE_EXCEPTION_FROM_HRESULT           "Exception from HRESULT: "
     IDS_EE_NDIRECT_UNSUPPORTED_SIG          "Method's type signature is not PInvoke compatible."
     IDS_EE_COM_UNSUPPORTED_SIG              "Method's type signature is not Interop compatible."
     IDS_EE_COM_UNSUPPORTED_TYPE             "The method returned a COM Variant type that is not Interop compatible."
index cbd03b6..cec39bb 100644 (file)
@@ -88,7 +88,6 @@
 #define IDS_DS_DSOTHREADMODEL                   0x1707
 
 #define IDS_EE_NDIRECT_UNSUPPORTED_SIG          0x1708
-#define IDS_EE_EXCEPTION_FROM_HRESULT           0x1709
 #define IDS_EE_NDIRECT_BADNATL                  0x170a
 #define IDS_EE_NDIRECT_LOADLIB_WIN              0x170b
 #define IDS_EE_NDIRECT_GETPROCADDRESS_WIN       0x170c
index 5c182d5..a5a7cb9 100644 (file)
@@ -1200,7 +1200,6 @@ void GetHRMsg(HRESULT hr, SString &result, BOOL bNoGeekStuff/* = FALSE*/)
         result.Append(strDescr);
     }
 
-    
     if (!bNoGeekStuff)
     {
         if (fHaveDescr)
@@ -1208,21 +1207,16 @@ void GetHRMsg(HRESULT hr, SString &result, BOOL bNoGeekStuff/* = FALSE*/)
             result.Append(W(" ("));
         }
 
-        SString strExcepFromHR;
-        strExcepFromHR.LoadResource(CCompRC::Error, IDS_EE_EXCEPTION_FROM_HRESULT);
-        result.Append(strExcepFromHR);
         result.AppendPrintf(W("0x%.8X"), hr);
         if (name != NULL)
         {
             result.AppendPrintf(W(" (%S)"), name);
         }
 
-
         if (fHaveDescr)
         {
             result.Append(W(")"));
         }
-        
     }
 }