code proposal for GetWindowModuleFileName[AW]

Deun deun76 at yahoo.com
Tue May 6 09:43:17 CDT 2008


Hi,

This is probably a bad timing to submit this patch because of
the code freeze... However I recently found that the client
updater of the game Megami Tensei Imagine
(http://www.megatenonline.com/) was trying to make a backup of
the filename obtained from GetWindowModuleFileNameA, and then
it was failing because the stub returned an empty string.

Since the program name was printed in the debug logs (Starting
process %s ....) I've used the same way of retrieving the value
to fill the result in the 2 functions. However I'm not sure
about the return value of the W version since the MSDN website
doesn't detail it well if it's still counting bytes or
widechar....

Regards,

Denis Huguet.


Changelog: 
Provides initial implementation of GetWindowModuleFileNameA and
GetWindowModuleFileNameW in user32 to replace the FIXME.

Testcase:
Download and install game from
http://www.megatenonline.com/support/download.html
then run the updater. If it fails, a message box appears, else
the update window appears.




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GetWindowModuleFileName.patch
Type: text/x-patch
Size: 1261 bytes
Desc: 3951106267-GetWindowModuleFileName.patch
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080506/0e39f8f9/attachment.bin 


More information about the wine-patches mailing list