Index: src/libchcore/TLocalFilesystemFile.cpp =================================================================== diff -u -N -rf8fcbbd1d2321cf0c8be79526c449384af654e49 -r7fd37811dbce76d429b80e4703e88925982f5859 --- src/libchcore/TLocalFilesystemFile.cpp (.../TLocalFilesystemFile.cpp) (revision f8fcbbd1d2321cf0c8be79526c449384af654e49) +++ src/libchcore/TLocalFilesystemFile.cpp (.../TLocalFilesystemFile.cpp) (revision 7fd37811dbce76d429b80e4703e88925982f5859) @@ -21,14 +21,13 @@ #include "TBufferSizes.h" #include "TCoreException.h" #include "ErrorCodes.h" -#include #include #include "RoundingFunctions.h" #include "TLocalFilesystem.h" -#include "TCoreWin32Exception.h" #include "TFileException.h" #include "TFileInfo.h" #include "StreamingHelpers.h" +#include "TOverlappedDataBufferQueue.h" namespace chcore { @@ -214,7 +213,9 @@ rBuffer.SetErrorCode(ERROR_SUCCESS); rBuffer.SetLastPart(true); - rBuffer.RequeueAsFull(); // basically the same as OverlappedReadCompleted + TOverlappedDataBufferQueue* pQueue = (TOverlappedDataBufferQueue*)rBuffer.GetParam(); + + pQueue->AddFullBuffer(&rBuffer); // basically the same as OverlappedReadCompleted break; }