diff --git a/src/libraries/System.Private.CoreLib/src/Resources/Strings.resx b/src/libraries/System.Private.CoreLib/src/Resources/Strings.resx index b7a2c2aa9d8667..bb1afc6abaf2e7 100644 --- a/src/libraries/System.Private.CoreLib/src/Resources/Strings.resx +++ b/src/libraries/System.Private.CoreLib/src/Resources/Strings.resx @@ -257,7 +257,7 @@ Must specify property Set or Get or method call for a COM Object. - Error HRESULT E_FAIL has been returned from a call to a COM component. + Unexpected HRESULT has been returned from a call to a COM component. Only one of the following binding flags can be set: BindingFlags.SetProperty, BindingFlags.PutDispProperty, BindingFlags.PutRefDispProperty. diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/ExternalException.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/ExternalException.cs index 03b422860d75af..7285e4c175fe3d 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/ExternalException.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/ExternalException.cs @@ -53,7 +53,7 @@ public override string ToString() string s = $"{GetType()} (0x{HResult:X8})"; - if (!string.IsNullOrEmpty(message ?? SR.Arg_ExternalException)) + if (!string.IsNullOrEmpty(message)) { s += ": " + message; }