http://bugs.winehq.org/show_bug.cgi?id=3115
------- Additional Comments From burnus@gmx.de 2005-14-07 06:32 ------- Quick analysis by Alexandre Julliard:
Ok, looking again the debug output, I see first ------------- trace:ntdll:NtCreateFile handle=0x45000104 access=80000000 name=L"\??\C:\Program Files\origin6.0\" objattr=00000040 root=(nil) sec=(nil) io=0x406da464 alloc_size=(nil) attr=00000000 sharing=00000003 disp=1 options=00000021 ea=(nil).0x00000000 ------------- disp(osition)=1 is FILE_CREATE (fails if file exists, otherwise creates file).
Only later it then tries CreateFileW with TRUNCATE_EXISTING (creation 3). Seemingly, either the file does not yet exist when CreateFileW is called or something else goes wrong here.