[PATCH 3/3] ws2_32: Add asynchronous support for TransmitFile.

Alexandre Julliard julliard at winehq.org
Wed Oct 14 08:51:00 CDT 2015


"Erich E. Hoover" <erich.e.hoover at wine-staging.com> writes:

> +        LARGE_INTEGER offset;
> +        int status;
> +
> +        /* set the file offset to the desired point */
> +        offset.u.LowPart = overlapped->u.s.Offset;
> +        offset.u.HighPart = overlapped->u.s.OffsetHigh;
> +        SetFilePointerEx( wsa->file, offset, NULL, FILE_BEGIN );

You need to handle overlapped files differently, using pread() instead
of setting the file pointer.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list