Re: [Qemu-devel] [PATCH v2] qga: fix append file open modes for win32

2015-11-11 Thread Michael Roth
Quoting Kirk Allan (2015-11-10 17:19:11) > For append file open modes, use FILE_APPEND_DATA for the desired access > for writing at the end of the file. > > Version 2: > For "a+", "ab+", and "a+b" modes use FILE_APPEND_DATA|GENERIC_READ. > ORing in GENERIC_READ starts a read at the begining of the

[Qemu-devel] [PATCH v2] qga: fix append file open modes for win32

2015-11-10 Thread Kirk Allan
For append file open modes, use FILE_APPEND_DATA for the desired access for writing at the end of the file. Version 2: For "a+", "ab+", and "a+b" modes use FILE_APPEND_DATA|GENERIC_READ. ORing in GENERIC_READ starts a read at the begining of the file. All writes will append to the end fo the file