http://bugs.winehq.org/show_bug.cgi?id=5114
Jeff Zaroyko jeffzaroyko@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeffzaroyko@gmail.com
--- Comment #6 from Jeff Zaroyko jeffzaroyko@gmail.com 2008-02-11 17:57:43 --- (In reply to comment #5)
(In reply to comment #4)
Created an attachment (id=10710)
--> (http://bugs.winehq.org/attachment.cgi?id=10710) [details] [details]
Patch to add requested functionality
You got the basic idea right, but the code needs some additional work, i.e. don't mix WCHARs and chars.
additional to the above
+ char windowname[strlen(desktop_nameW) + strlen(desktopname)];
variable length arrays are a C99 feature wine uses C89, and I don't think you have allocated enough space to store the two strings, dynamically allocate the storage and include space for the nul terminator.