[Bug 33195] Multiple applications ported to WinRT/ARM require msvcr110.dll.__crtGetShowWindowMode (MirandaIM, FinalBurn, ...)

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Apr 18 17:35:45 CDT 2013


http://bugs.winehq.org/show_bug.cgi?id=33195

--- Comment #2 from Anastasius Focht <focht at 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list