example code appending files with w32api broken?
bon at elektron.ikp.physik.tu-darmstadt.de
Tue Jan 19 14:41:10 CST 2010
>>>>> "Hin-Tak" == Hin-Tak Leung <hintak_leung at yahoo.co.uk> writes:
Hin-Tak> I needed a WIN32 API based file-appending solution to fix a bug
Hin-Tak> (http://bugs.winehq.org/show_bug.cgi?id=21394) and using the
Hin-Tak> example code
Hin-Tak> as reference, I have got a somewhat working solution, except if
Hin-Tak> I follow the code, the WriteFile part for appending fails.
Hin-Tak> Then I have cross-gcc compiling that example source code
Hin-Tak> standard-alone, and the resulting executable won't append under
Hin-Tak> wine cmd either. So it looks like either the example code is
Hin-Tak> wrong, or wine's implementation of WriteFile() is a bit broken
Hin-Tak> sometimes. I have determined the ReadFile succceeds and the
Hin-Tak> SetFilePointer() also work)
Hin-Tak> So I have two questions - (1) can somebody tell if there is
Hin-Tak> something obviously wrong with the example, (2) can somebody
Hin-Tak> say if it is because wine is not working e.g. SetPointer
Hin-Tak> doesn't work?
Register with the winetestbot, upload your test exe and compare the test
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the wine-devel