[Bug 38400] Files fail to save and open in BDCraft Cubik Lite/Pro

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Apr 26 03:59:08 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=38400

Dmitry Timoshkov <dmitry at baikal.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #10 from Dmitry Timoshkov <dmitry at baikal.ru> ---
It's a bug in the application, it works by a pure luck under Windows.

The app passes a not initialized ofn->lpstrFileTitle to GetSaveFileNameW().
Basically ofn->lpstrFileTitle points to the stack approximately 428 bytes
above the current stack pointer, and since Wine's GetSaveFileNameW() uses
more than 4096 bytes one of internal stack frames is guaranteed to be trashed
after copying file name to ofn->lpstrFileTitle.

I managed to reduce stack utilization of GetSaveFileNameW() to about 2048
bytes by allocating most of temporary variables on the heap instead of
stack but that doesn't help, simple dialog creation in Wine already takes
more than 1024 bytes of stack.

I'd say invalid or won't fix.

-- 
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