mirror of
https://github.com/rclone/rclone.git
synced 2025-02-23 13:50:57 +08:00

Before this change we passed both lpOverlapped and lpBytesReturned as NULL. > If lpOverlapped is NULL, lpBytesReturned cannot be NULL. Even when > an operation produces no output data, and lpOutBuffer can be NULL, > the DeviceIoControl function makes use of the variable pointed to by > lpBytesReturned. After such an operation, the value of the variable > is without meaning. After this change we set lpBytesReturned to a valid pointer. See: https://forum.rclone.org/t/errors-when-downloading-any-file-over-250mb-from-google-drive-windows-sparse-files/16889