http://bugs.winehq.org/show_bug.cgi?id=16692
Jan-Peter Nilsson peppe@bsnet.se changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |peppe@bsnet.se
--- Comment #10 from Jan-Peter Nilsson peppe@bsnet.se 2012-04-06 02:06:03 CDT --- The OPENFILENAMEA structure given to GetSaveFileNameA() have a nMaxFile of 0 and NULL lpstrFile.
According to what I found on MSDN this does not appear to be valid values. "The GetOpenFileName and GetSaveFileName functions return FALSE if the buffer is too small to contain the file information. The buffer should be at least 256 characters long." [1]
So I guess either GetSaveFileName on windows doesn't actually work as described, or wine is triggering a different behavior at some earlier stage that leads to the call to GetSaveFileNameA() getting an empty buffer.
[1] http://msdn.microsoft.com/en-us/library/windows/desktop/ms646839%28v=vs.85%2...