@@ -414,7 +414,7 @@ size_t _write_file_async(_In_ streams::details::_file_info_impl *fInfo, _In_ str
414
414
// However, we didn't pass in an address for the number of bytes written, so
415
415
// we have to retrieve it using 'GetOverlappedResult,' which may, in turn, fail.
416
416
DWORD written = 0 ;
417
- result = GetOverlappedResult (fInfo ->m_handle , pOverlapped, &written, FALSE ) ? static_cast <size_t >(written) : static_cast <size_t >(-1 );
417
+ result = GetOverlappedResult (fInfo ->m_handle , pOverlapped. get () , &written, FALSE ) ? static_cast <size_t >(written) : static_cast <size_t >(-1 );
418
418
}
419
419
420
420
if (result == static_cast <size_t >(-1 ))
@@ -502,7 +502,7 @@ size_t _read_file_async(_In_ streams::details::_file_info_impl *fInfo, _In_ stre
502
502
// However, we didn't pass in an address for the number of bytes written, so
503
503
// we have to retrieve it using 'GetOverlappedResult,' which may, in turn, fail.
504
504
DWORD read = 0 ;
505
- result = GetOverlappedResult (fInfo ->m_handle , pOverlapped, &read, FALSE ) ? static_cast <size_t >(read) : static_cast <size_t >(-1 );
505
+ result = GetOverlappedResult (fInfo ->m_handle , pOverlapped. get () , &read, FALSE ) ? static_cast <size_t >(read) : static_cast <size_t >(-1 );
506
506
}
507
507
508
508
if (wrResult == FALSE && error == ERROR_HANDLE_EOF)
0 commit comments