[Bug 16692] Morrowind Construction Set Crashes on Saving New Plugin

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Apr 6 02:06:03 CDT 2012


Jan-Peter Nilsson <peppe at bsnet.se> changed:

           What    |Removed                     |Added
                 CC|                            |peppe at bsnet.se

--- Comment #10 from Jan-Peter Nilsson <peppe at 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.


Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list