[Bug 39637] Applications using MFC 'MFCButton' class based on Common Controls 6+ 'Button' class don't work ('comctl32' needs to register builtin 'Button' class with 'CS_GLOBALCLASS')( Samsung TV SDK 3.5.2)

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Feb 9 04:39:16 CST 2018


https://bugs.winehq.org/show_bug.cgi?id=39637

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Fixed by SHA1|                            |5d10abde503fc4a952c114c658f
                   |                            |ed74f97bff090
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #12 from Anastasius Focht <focht at gmx.net> ---
Hello Nikolay,

--- quote ---
Could you please retest this if you still have the installer? I don't see it on
their website anymore.
--- quote ---

Yeah, that's always the problem with old versions ... they get pulled off the
web at one point in time.
For that reason I keep all binaries/installers/log files needed to
reproduce/revisit the issues in a local git-annex repo.

Confirming, the app works now.

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/Samsung/Samsung TV SDK(3.5.2)/Bin

$ WINEDEBUG=+pid,+seh,+relay,+win,+msg,+actctx wine ./Samsung\ TV\ SDK.exe
>>log.txt 2>&1
...
0032:0033:Call PE DLL (proc=0x7884a40b,module=0x785f0000
L"mfc100u.dll",reason=PROCESS_ATTACH,res=0x33fd24)
...
0032:0033:Call KERNEL32.CreateActCtxW(0033fbbc) ret=787209b4
0032:0033:trace:actctx:CreateActCtxW 0x33fbbc 00000088
0032:0033:trace:actctx:RtlCreateActivationContext 0x33fbbc 00000088
0032:0033:trace:actctx:get_manifest_in_module looking for res #0001 in module
0x400000 L"C:\\Program Files\\Samsung\\Samsung TV SDK(3.5.2)\\Bin\\Samsung TV
SDK.exe"
0032:0033:trace:actctx:parse_manifest parsing manifest loaded from (null) base
dir (null)
0032:0033:trace:actctx:parse_assembly_elem (0x33f9ac)
0032:0033:warn:actctx:parse_assembly_identity_elem Unsupported yet language
attribute (L"*")
0032:0033:trace:actctx:parse_assembly_identity_elem
name=L"Microsoft.Windows.Common-Controls" version=6.0.0.0 arch=L"x86"
0032:0033:trace:actctx:parse_dependent_assembly_elem adding
name=L"Microsoft.Windows.Common-Controls" version=6.0.0.0 arch=L"x86"
0032:0033:warn:actctx:parse_assembly_elem unknown element L"trustInfo"
0032:0033:warn:actctx:parse_assembly_elem unknown element L"application"
0032:0033:trace:actctx:lookup_assembly looking for
name=L"Microsoft.Windows.Common-Controls" version=6.0.0.0 arch=L"x86"
0032:0033:trace:actctx:get_manifest_in_manifest_file loading manifest file
L"\\??\\C:\\windows\\winsxs\\manifests\\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef.manifest"
0032:0033:trace:actctx:parse_manifest parsing manifest loaded from
L"\\??\\C:\\windows\\winsxs\\manifests\\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef.manifest"
base dir
L"x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef"
0032:0033:trace:actctx:parse_assembly_elem (0x33f86c)
0032:0033:trace:actctx:parse_assembly_identity_elem
name=L"Microsoft.Windows.Common-Controls" version=6.0.2600.2982 arch=L"x86"
0032:0033:trace:actctx:parse_file_elem name=L"comctl32.dll"
0032:0033:Ret  KERNEL32.CreateActCtxW() retval=0016c778 ret=787209b4
...
0032:0033:Call KERNEL32.ActivateActCtx(0016c778,0033e634) ret=7882ff42
0032:0033:trace:actctx:RtlActivateActivationContext 0x16c778 cookie=d3cff0
0032:0033:Ret  KERNEL32.ActivateActCtx() retval=00000001 ret=7882ff42
0032:0033:Call comctl32.InitCommonControlsEx(0033e688) ret=7882ff72
0032:0033:Ret  comctl32.InitCommonControlsEx() retval=00000001 ret=7882ff72 
...
0032:0033:Call KERNEL32.ActivateActCtx(0016c778,0033e63c) ret=78664d19
0032:0033:trace:actctx:RtlActivateActivationContext 0x16c778 cookie=d3cff0
0032:0033:Ret  KERNEL32.ActivateActCtx() retval=00000001 ret=78664d19
0032:0033:Call user32.GetClassInfoW(00400000,785f925c L"Button",0033e678)
ret=78664d36
0032:0033:trace:actctx:RtlFindActivationContextSectionString 00000000 (null) 3
L"Button" 0x33e488
0032:0033:Ret  user32.GetClassInfoW() retval=0000c046 ret=78664d36 
...
0032:0033:Call user32.GetClassInfoW(00400000,785f926c L"MFCButton",0033e62c)
ret=78664d36
0032:0033:trace:actctx:RtlFindActivationContextSectionString 00000000 (null) 3
L"MFCButton" 0x33e428
0032:0033:Ret  user32.GetClassInfoW() retval=00000000 ret=78664d36
0032:0033:Call KERNEL32.GetLastError() ret=78664d62
0032:0033:Ret  KERNEL32.GetLastError() retval=00000583 ret=78664d62
...
0032:0033:Call KERNEL32.ActivateActCtx(0016c778,0033e5ec) ret=78830030
0032:0033:trace:actctx:RtlActivateActivationContext 0x16c778 cookie=d3cff0
0032:0033:Ret  KERNEL32.ActivateActCtx() retval=00000001 ret=78830030
0032:0033:Call user32.RegisterClassW(0033e678) ret=78830047
0032:0033:trace:actctx:RtlFindActivationContextSectionString 00000000 (null) 3
L"MFCButton" 0x33e478
0032:0033:trace:win:alloc_winproc reusing 0xffff0023 for 0x7e747f5a
0032:0033:Ret  user32.RegisterClassW() retval=0000c0a1 ret=78830047
...
0032:0033:trace:actctx:RtlFindActivationContextSectionString 00000000 (null) 3
L"MfcButton" 0x33df18
0032:0033:trace:win:WIN_CreateWindowEx L"Add" L"MfcButton" ex=00000004
style=50010000 362,0 88x25 parent=0x10132 menu=0x413 inst=0x770000 params=(nil)
0032:0033:trace:win:dump_window_styles style: WS_CHILD WS_VISIBLE WS_TABSTOP
0032:0033:trace:win:dump_window_styles exstyle: WS_EX_NOPARENTNOTIFY
0032:0033:trace:win:WIN_SetWindowLong 0x1013a -12 413 W 
...
--- snip --

Fixed by commit
https://source.winehq.org/git/wine.git/commitdiff/5d10abde503fc4a952c114c658fed74f97bff090

Thanks Nikolay

There are still crashes later when interacting with the app though.

$ sha1sum \[2012\]Samsung_TV_SDK_Setup\(3.5.2\).exe 
12726387592d22b79250d71d365eced477129767  [2012]Samsung_TV_SDK_Setup(3.5.2).exe

$ du -sh \[2012\]Samsung_TV_SDK_Setup\(3.5.2\).exe 
294M    [2012]Samsung_TV_SDK_Setup(3.5.2).exe

$ wine --version
wine-3.1-168-g661d11d071

Regards

-- 
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