http://bugs.winehq.org/show_bug.cgi?id=21434
Summary: append file example works on Vista but not in wine. Product: Wine Version: 1.1.35 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: htl10@users.sourceforge.net
Created an attachment (id=25810) --> (http://bugs.winehq.org/attachment.cgi?id=25810) zip file with source code, input file, and a cross-compiled binary.
While trying to fix bug 21394 ("+" in cmd copy's syntax to join two files), I tried to an example of appending files in MSDN ( http://msdn.microsoft.com/en-us/library/aa363778%28VS.85%29.aspx ) and when I am testing my patch, it did not work, and so I tested the example itself, and it doesn't work either. Then I reboot to Vista and the example does work there, so obviously there is a bug with wine's File operations themselves.
The example, is supposed to just append the content of file "one.txt" to file "two.txt" every time it is run. When the binary is run on Vista, "two.txt" increases in size every time "append.exe" is run as it should; but this does not work under wine cmd.
The binary "append.exe" is created with cross-gcc in linux, simply by "i686-pc-mingw32-gcc file.c" ; feel free to rebuild from source, which is also attached in the zip file.