[3/3] ntdll: Add support for FILE_APPEND_DATA to NtWriteFile. Take 2.

Alexandre Julliard julliard at winehq.org
Fri Oct 4 13:04:11 CDT 2013


Dmitry Timoshkov <dmitry at baikal.ru> writes:

> @@ -979,6 +986,12 @@ NTSTATUS WINAPI NtWriteFile(HANDLE hFile, HANDLE hEvent,
>              goto done;
>          }
>  
> +        if (append_write)
> +        {
> +            offset_eof.QuadPart = (LONGLONG)-1; /* FILE_WRITE_TO_END_OF_FILE */
> +            offset = &offset_eof;
> +        }
> +

Please add a test for the file position after the write, to show that
this is the correct behavior.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list