Le mardi 08 mars 2005 à 23:29 +0800, Dmitry Timoshkov a écrit :
"Jonathan Ernst" Jonathan@ErnstFamily.ch wrote:
[...]
Thanks, fixed.
You can't use toupper with unicode strings. I can't suggest a win32 equivalent from the top of my head, you need to find out.
It seems that CharUpperW works well.
[...]
Last but not least, since these changes the uninstaller crashes (very) often. I have an unhandled exception when retrieving some apps from the uninstall key and I don't know what cause this:
err:seh:EXC_DefaultHandling Unhandled exception code c0000005 flags 0 addr 0x77ecf5d4
Very likely a common error happening often in the process of unicodification: buffer overflow due to not a correct memory allocation, or a not correct initialization of a variable pointing to a buffer length (size of buffer in bytes vs. WCHARs).
Thanks for the hint. I found the allocation problem.
[...]
Fixed
Now everything works; thanks for your step by step help; I hope that what I'me learning now will let me make more additions to Wine !
But:
It is even possible to uninstall more than one app at a time, but I wish that when an uninstaller has finished to uninstall an application the list is updated, but it's not. What's and where's a clean way to do it ?
Please find attached main.c's diff.
Jonathan
P.S. Do I really have to split this new uninstaller in different patches as nearly everything changed ?