http://bugs.winehq.org/show_bug.cgi?id=33195
Bug #: 33195 Summary: WinRT/ARM port of Miranda IM needs msvcr110.dll.__crtGetShowWindowMode Product: Wine Version: 1.5.25 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net Classification: Unclassified
Hello folks,
as the summary says ...
--- snip --- 0024:Starting process L"Z:\home\linaro\wine-apps\miranda\miranda32.exe" (entryproc=0x45e4e5) 0024:Call KERNEL32.GetSystemTimeAsFileTime(40aefdc0) ret=0045e70b 0024:Ret KERNEL32.GetSystemTimeAsFileTime() retval=00000000 ret=0045e70b 0024:Call KERNEL32.GetCurrentThreadId() ret=0045e719 0024:Ret KERNEL32.GetCurrentThreadId() retval=00000024 ret=0045e719 0024:Call KERNEL32.GetTickCount64() ret=0045e725 0024:Ret KERNEL32.GetTickCount64() retval=000000000049917d ret=0045e725 0024:Call KERNEL32.QueryPerformanceCounter(40aefdc8) ret=0045e735 0024:Ret KERNEL32.QueryPerformanceCounter() retval=00000001 ret=0045e735 0024:Call KERNEL32.RaiseException(80000100,00000001,00000002,40aefda8) ret=4175d66c 0024:trace:seh:raise_exception info[0]=4175d696 0024:trace:seh:raise_exception info[1]=417614ef wine: Call from 0x7bc998f8 to unimplemented function msvcr110.dll.__crtGetShowWindowMode, aborting 0024:trace:seh:call_stack_handlers calling handler at 0x7bcb7bb0 code=80000100 flags=1 0024:Call KERNEL32.UnhandledExceptionFilter(40aefba0) ret=7bcb7c14 wine: Unimplemented function msvcr110.dll.__crtGetShowWindowMode called at address 0x7bc998f8 (thread 0024), starting debugger... 0024:trace:seh:start_debugger Starting debugger "winedbg --auto 35 124" 0024:Ret KERNEL32.UnhandledExceptionFilter() retval=00000000 ret=7bcb7c14 0024:trace:seh:call_stack_handlers handler at 0x7bcb7bb0 returned 1 Unhandled exception: unimplemented function msvcr110.dll.__crtGetShowWindowMode called in 32-bit code (0x7bc998f8). Register dump: ARM User Mode Pc:7bc998f8 Sp:40aefc7c Lr:7bc998f8 Cpsr:400f0010(-Z--) r0:40aefc88 r1:40aefdb0 r2:0000 r3:40aefc88 r4:7b847890 r5:40aefd48 r6:7bf00b35 r7:40aefdb8 r8:0000 r9:0000 r10:400fe000 Fp:40aefcd8 Ip:7b8cb384 Stack dump: 0x40aefc7c: 403549c8 40aefcec 00000000 00000043 0x40aefc8c: 40aefc88 40aefdb0 00000000 40aefc88 0x40aefc9c: 7b847890 40aefd48 7bf00b35 40aefdb8 0x40aefcac: 00000000 00000000 400fe000 40aefcd8 0x40aefcbc: 7b8cb384 40aefc7c 7bc998f8 7bc998f8 0x40aefccc: 400f0010 40aefd00 40aefd40 7b84794c --- snip ---
There doesn't seem to be MSDN documentation on this. Examining Miranda code (caller) suggests it might be parameterless and "int" return type (value in r0).
Regards
http://bugs.winehq.org/show_bug.cgi?id=33195
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://forum.xda-developers | |.com/attachment.php?attachm | |entid=1649674&d=1358334467 Platform|x86 |arm
http://bugs.winehq.org/show_bug.cgi?id=33195
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
http://bugs.winehq.org/show_bug.cgi?id=33195
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|WinRT/ARM port of Miranda |Multiple applications |IM needs |ported to WinRT/ARM require |msvcr110.dll.__crtGetShowWi |msvcr110.dll.__crtGetShowWi |ndowMode |ndowMode (MirandaIM, | |FinalBurn, ...)
--- Comment #1 from Anastasius Focht focht@gmx.net 2013-03-16 09:02:32 CDT --- Hello folks,
this also needed by other apps:
--- snip --- $ wine ./fba_arm.exe wine: Call from 0x403ba9c8 to unimplemented function msvcr110.dll.__crtGetShowWindowMode, aborting wine: Unimplemented function msvcr110.dll.__crtGetShowWindowMode called at address 0x403ba9c8 (thread 0009), starting debugger... --- snip ---
Refining summary.
It seems a simple stub "int CDECL __crtGetShowWindowMode(void)" returning zero is enough to keep the apps happy.
$ wine --version wine-1.5.26-19-g6ed2d9b
Regards
http://bugs.winehq.org/show_bug.cgi?id=33195
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |33226
http://bugs.winehq.org/show_bug.cgi?id=33195
--- Comment #2 from Anastasius Focht focht@gmx.net 2013-04-18 17:35:45 CDT --- Hello folks,
the Audacity/Miranda startup code gives a good hint regarding the type/nature of returned parameter:
--- snip --- 006B4342 BL 006B4780 006B4346 MOV R9, R0 ... 006B4780 MOV R12, #0x6CB2B8 ; __crtGetShowWindowMode 006B4788 LDR.W PC, [R12] --- snip ---
(stored in R9)
Later:
--- snip --- 006B4440 LDR R0, =0x400000 ; HINSTANCE hInstance 006B4442 MOV R3, R9 ; nCmdShow = value from __crtGetShowWindowMode 006B4444 MOV R2, R4 ; pCmdLine 006B4446 MOVS R1, #0 ; HINSTANCE hPrevInstance 006B4448 BL 0040DD94 ... 0040DD94 PUSH.W {R3,R4,R11,LR} 0040DD98 ADDW R11, SP, #8 0040DD9C MOV R4, #0x6CDEBC 0040DDA4 LDR R4, [R4] ; wxEntry(HINSTANCE__ *,HINSTANCE__ *,char *,int) 0040DDA6 BLX R4 0040DDA8 POP.W {R3,R4,R11,PC} --- snip ---
wxwidgets documentation: http://docs.wxwidgets.org/2.8/wx_appinifunctions.html
--- quote --- Under MS Windows, an additional overload suitable for calling from WinMain is available:
int wxEntry(HINSTANCE hInstance, HINSTANCE hPrevInstance = NULL, char *pCmdLine = NULL, int nCmdShow = SW_SHOWNORMAL) --- quote ---
So the origin is most likely the "wShowWindow" member of GetStartupInfo() -> process creation, as Dmitry says.
--- quote --- Isn't it supposed to return SW_SHOW and other SW_xxx commands, specified at process creation time (SW_SHOWDEFAULT)? In that case returning 0 (SW_HIDE) is not a very good choice. --- quote ---
Regards
http://bugs.winehq.org/show_bug.cgi?id=33195
--- Comment #3 from Austin English austinenglish@gmail.com 2013-04-18 18:11:09 CDT --- Created attachment 44213 --> http://bugs.winehq.org/attachment.cgi?id=44213 stub
Try this please
http://bugs.winehq.org/show_bug.cgi?id=33195
--- Comment #4 from Anastasius Focht focht@gmx.net 2013-04-18 18:35:29 CDT --- Hello Austin,
sure it works ... MirandaIM for ARM is the only app that seems to properly start and show gui. Many other apps can't be tested as they are being blocked by other Wine insufficiencies like bug 31487 or suffering from those dreaded import-by-ordinals-only disease.
Regards
http://bugs.winehq.org/show_bug.cgi?id=33195
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |c649d8746dc3865d086fd39bfa5 | |774127cbd2248 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #5 from Austin English austinenglish@gmail.com 2013-05-01 13:38:50 CDT --- Should be fixed by http://source.winehq.org/git/wine.git/commitdiff/c649d8746dc3865d086fd39bfa5...
http://bugs.winehq.org/show_bug.cgi?id=33195
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2013-05-10 13:42:04 CDT --- Closing bugs fixed in 1.5.30.
https://bugs.winehq.org/show_bug.cgi?id=33195
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://forum.xda-developers |https://web.archive.org/web |.com/attachment.php?attachm |/20201225023235/https://for |entid=1649674&d=1358334467 |um.xda-developers.com/attac | |hments/miranda_arm-zip.1649 | |674/