Index: src/libchcore/TFakeFilesystemFile.cpp =================================================================== diff -u -r27a43e40952cf2f3e0bb0e608a8f3142042ceb46 -r24d1cbf231e28e8c3fe3bce41365175f4cecdac9 --- src/libchcore/TFakeFilesystemFile.cpp (.../TFakeFilesystemFile.cpp) (revision 27a43e40952cf2f3e0bb0e608a8f3142042ceb46) +++ src/libchcore/TFakeFilesystemFile.cpp (.../TFakeFilesystemFile.cpp) (revision 24d1cbf231e28e8c3fe3bce41365175f4cecdac9) @@ -177,7 +177,7 @@ file_size_t fsRemaining = spFileDesc->GetFileInfo().GetLength64() - rBuffer.GetFilePosition(); rBuffer.SetStatusCode(STATUS_OK); - rBuffer.SetBytesTransferred(fsRemaining); + rBuffer.SetBytesTransferred(boost::numeric_cast(fsRemaining)); pInfo->dwError = ERROR_SUCCESS; pInfo->dwNumberOfBytesTransfered = boost::numeric_cast(fsRemaining); pInfo->pOverlapped = &rBuffer;