http://bugs.winehq.org/show_bug.cgi?id=17208
Summary: The mikroC IDE doesn't run - an exception is outputed. Product: Wine Version: 1.1.14 Platform: PC URL: http://www.mikroe.com OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P3 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dexterlb@yandex.ru
When trying to start the Mikroelektronika mikroC IDE (either the demo or the full version) it doesn't start. In the terminal, I get "Unhandled exception".
The terminal output is attached. Tested on ubuntu 8.10.
http://bugs.winehq.org/show_bug.cgi?id=17208
--- Comment #1 from Angel Angelov dexterlb@yandex.ru 2009-01-31 06:27:22 --- Created an attachment (id=19123) --> (http://bugs.winehq.org/attachment.cgi?id=19123) The mikroC terminal output
http://bugs.winehq.org/show_bug.cgi?id=17208
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox_xerox2000@yahoo.co.uk Status|UNCONFIRMED |NEW Component|-unknown |comctl32 Ever Confirmed|0 |1 Keywords| |download
--- Comment #2 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2009-01-31 07:24:50 --- Confirming, starts fine for me after doing "winetricks cc580" so likely bug in comctl32.dll
Angel, you could try that as a workaround until bug is fixed
http://bugs.winehq.org/show_bug.cgi?id=17208
--- Comment #3 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2009-01-31 07:37:21 --- the hack below makes the app start fine for me too:
diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c index 418e87c..e04ec14 100644 --- a/dlls/comctl32/comctl32undoc.c +++ b/dlls/comctl32/comctl32undoc.c @@ -770,7 +770,7 @@ HANDLE WINAPI CreateMRUListLazyA (const CREATEMRULISTA *lpcml, DWORD dwParam2,
if (lpcml->cbSize != sizeof(CREATEMRULISTA) || !lpcml->hKey || IsBadStringPtrA(lpcml->lpszSubKey, -1)) - return 0; +;// return 0;
mp = Alloc(sizeof(WINEMRULIST)); memcpy(&mp->extview, lpcml, sizeof(CREATEMRULISTW));
http://bugs.winehq.org/show_bug.cgi?id=17208
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
http://bugs.winehq.org/show_bug.cgi?id=17208
Angel Angelov dexterlb@yandex.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #4 from Angel Angelov dexterlb@yandex.ru 2009-02-01 01:38:26 --- Thank you!
I tested both ways of fixing the bug, and they work :)
I'll commit the fix in appdb.
http://bugs.winehq.org/show_bug.cgi?id=17208
--- Comment #5 from Angel Angelov dexterlb@yandex.ru 2009-02-01 01:49:55 --- Created an attachment (id=19141) --> (http://bugs.winehq.org/attachment.cgi?id=19141) Patch to fix the bug
Compile wine with this patch and mikroC should start working
http://bugs.winehq.org/show_bug.cgi?id=17208
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |
--- Comment #6 from Jeff Zaroyko jeffz@jeffz.name 2009-02-01 04:03:59 --- It's not fixed until a fix has gone into git.
http://bugs.winehq.org/show_bug.cgi?id=17208
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Alias|mikroC |
http://bugs.winehq.org/show_bug.cgi?id=17208
Mikolaj Zalewski mikolaj.zalewski@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mikolaj.zalewski@gmail.com
--- Comment #7 from Mikolaj Zalewski mikolaj.zalewski@gmail.com 2009-02-01 12:47:30 --- The program calls this function with lpcml->cbSize == 4. We would need to test what Windows' comctl32 does for such a parameter. It's possible it doesn't check it, maybe the other MRU functions should check for handle != NULL, or there is another bug in Wine that causes the size to be invalid.
http://bugs.winehq.org/show_bug.cgi?id=17208
--- Comment #8 from Nikolay Sivov bunglehead@gmail.com 2009-05-24 09:51:42 --- (In reply to comment #5)
Created an attachment (id=19141)
--> (http://bugs.winehq.org/attachment.cgi?id=19141) [details]
Patch to fix the bug
Compile wine with this patch and mikroC should start working
I've did some tests (which I'll post to wine-patches soon) and this isn't a cause. I've tested all 3 cases that your patch skips.
Please try to add a NULL check for MRU calls taking handles as parameters.
P.S. tried a 1.6.5 mikroC demo and it starts fine but UI is really slow. What version are you trying with?
http://bugs.winehq.org/show_bug.cgi?id=17208
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com 2009-05-30 11:51:09 --- To Angel:
Try with current git please. Some patches on MRU calls have been committed recently.
http://bugs.winehq.org/show_bug.cgi?id=17208
--- Comment #10 from Nikolay Sivov bunglehead@gmail.com 2009-06-21 07:06:33 --- Test again with 1.1.24, it might be solved.
http://bugs.winehq.org/show_bug.cgi?id=17208
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com 2009-07-05 12:02:56 --- (In reply to comment #10)
Test again with 1.1.24, it might be solved.
New version is out, same request - test with 1.1.25 please.
http://bugs.winehq.org/show_bug.cgi?id=17208
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|patch |
--- Comment #12 from Nikolay Sivov bunglehead@gmail.com 2009-10-18 06:13:58 --- It's seven releases since a possible fix committed (about 14 weeks). As I said 1.6.5 works without patching, so test with original version you had a problem with.
http://bugs.winehq.org/show_bug.cgi?id=17208
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |ABANDONED
--- Comment #13 from Nikolay Sivov bunglehead@gmail.com 2009-12-04 13:32:57 --- No response here after a half of year.
http://bugs.winehq.org/show_bug.cgi?id=17208
--- Comment #14 from Nikolay Sivov bunglehead@gmail.com 2009-12-04 13:34:17 --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=17208
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Nikolay Sivov bunglehead@gmail.com 2009-12-04 13:35:04 --- Closing again.