File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/coreclr/System.Private.CoreLib/src/Microsoft/Win32 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,11 +117,11 @@ private static void OAFailed(int hr)
117
117
throw new OutOfMemoryException ( ) ;
118
118
case unchecked ( ( int ) 0x80020008 ) : // DISP_E_BADVARTYPE
119
119
throw new NotSupportedException ( SR . NotSupported_OleAutBadVarType ) ;
120
- case HResults . COR_E_DIVIDEBYZERO :
120
+ case unchecked ( ( int ) 0x80020012 ) : // DISP_E_DIVBYZERO
121
121
throw new DivideByZeroException ( ) ;
122
- case HResults . COR_E_OVERFLOW :
122
+ case unchecked ( ( int ) 0x8002000A ) : // DISP_E_OVERFLOW
123
123
throw new OverflowException ( ) ;
124
- case HResults . TYPE_E_TYPEMISMATCH :
124
+ case unchecked ( ( int ) 0x80020005 ) : // DISP_E_TYPEMISMATCH
125
125
throw new InvalidCastException ( SR . InvalidCast_OATypeMismatch ) ;
126
126
case HResults . E_INVALIDARG :
127
127
throw new ArgumentException ( ) ;
You can’t perform that action at this time.
0 commit comments