http://bugs.winehq.org/show_bug.cgi?id=5114
--- Comment #7 from Christian Authmann christian@authmann.de 2008-02-11 21:54:32 --- Created an attachment (id=10722) --> (http://bugs.winehq.org/attachment.cgi?id=10722) a better patch to add requested functionality
This should do the trick. I've been careful to check for error codes and buffer lengths and do provide a fallback when the desktop name isn't known.
This is my first wine patch, reviews/comments are appreciated.