http://bugs.winehq.org/show_bug.cgi?id=15326
--- Comment #19 from chris ahrendt celticht32@aol.com 2009-06-02 22:45:31 --- The test shows the problem with the file being
directory\file instead of c:\dir_level1\directory\file
on windows if you do a fopen on directory\file it opens the directory in the current execution directory and the file within that directory.. So if you are running the file in C:\student on windows it will look for the file c:\student\test\testthree.txt. In wine it does not work this way.
The other issue is a URI parsing issue with the open within kernel32.
The first time in the debug output with either +relay or +file that you see what looks to be a uri type file is in FindFirstFileExW. However the failure also occurs within WriteFile.