Changeset 21:eb59943050c9 in xplcommon for src/xplcommon/win32/Overlapped.cc
- Timestamp:
- 12/31/12 14:17:32 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/win32/Overlapped.cc
r20 r21 46 46 //------------------------------------------------------------------------------ 47 47 48 bool Overlapped::getResult(DWORD& size, HANDLE file) 49 { 50 bool result = GetOverlappedResult(file, &overlapped, &size, FALSE); 51 if (!result) { 52 DWORD error = GetLastError(); 53 if (error!=ERROR_IO_PENDING && error!=ERROR_IO_INCOMPLETE) { 54 reset(); 55 setErrorCode(error); 56 } 57 } else { 58 reset(); 59 } 60 return result; 61 } 62 63 //------------------------------------------------------------------------------ 64 48 65 // Local Variables: 49 66 // mode: C++
Note:
See TracChangeset
for help on using the changeset viewer.