Ignore:
Timestamp:
1/27/2010 5:58:28 AM (4 years ago)
Author:
lowjoel
Message:

Replace all Marshal.GetExceptionForHR with Win32ErrorCode.GetExceptionForWin32Error since we deal with Win32 errors not unlike COM errors, except with a few exceptions and that we should be throwing Win32Exception instead of COMException.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/CodeReview/Eraser.Util/File.cs

    r1681 r1705  
    163163                throw new IOException(string.Format(CultureInfo.CurrentCulture, 
    164164                    "Could not load file icon from {0}", path), 
    165                     Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error())); 
     165                    Win32ErrorCode.GetExceptionForWin32Error(Marshal.GetLastWin32Error())); 
    166166        } 
    167167 
Note: See TracChangeset for help on using the changeset viewer.