[2/6] ntdll: Add support to NtWriteFile for special offset -1.

Dmitry Timoshkov dmitry at baikal.ru
Fri Sep 6 09:29:57 CDT 2013


Alexandre Julliard <julliard at winehq.org> wrote:

> > +        if (offset && offset->QuadPart == (LONGLONG)-1 /* FILE_WRITE_TO_END_OF_FILE */)
> > +            offset->QuadPart = lseek( unix_handle, 0, SEEK_END );
> > +
> 
> This looks very wrong, offset belongs to the caller.

Of course you are correct, thanks.

-- 
Dmitry.



More information about the wine-devel mailing list