Ignore:
Timestamp:
1/27/2010 5:58:28 AM (5 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/StreamInfo.cs

    r1701 r1705  
    362362            //Check that the handle is valid 
    363363            if (handle.IsInvalid) 
    364                 throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()); 
     364                throw Win32ErrorCode.GetExceptionForWin32Error(Marshal.GetLastWin32Error()); 
    365365 
    366366            //Return the FileStream 
Note: See TracChangeset for help on using the changeset viewer.