http://bugs.winehq.org/show_bug.cgi?id=26027
Summary: Display ActiveX control of cmbchina online bank needs function iphlpapi.dll._PfCreateInterface Product: Wine Version: 1.3.13 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: fracting@gmail.com
URL of cmbchina online bank: https://pbsz.ebank.cmbchina.com/CmbBank_GenShell/UI/GenShellPC_EN/Login/Logi...
1. install the active control $ rm -rf ~/.wine $ wget http://site.cmbchina.com/download/CMBEdit.cab $ cabextract CMBEdit.cab $ regsvr32 ~/Wine/zhaoshang/CMBEdit.dll
2. write a html file named DebitCardQueryPwd_Ctrl.html as below: <object id="DebitCardQueryPwd_Ctrl" classid="clsid:0CA54D3F-CEAE-48AF-9A2B-31909CB9515D" codebase="https://site.cmbchina.com/download/CMBEdit.cab#version=1,2,0,1" width="180px" height="20px"></object>
This is extract from https://pbsz.ebank.cmbchina.com/CmbBank_GenShell/UI/GenShellPC_EN/Login/Logi...
3. host a http server and serve index.html
4. wine iexplore http://0.0.0.0/DebitCardQueryPwd_Ctrl.html
Then get logs like :
fixme:resource:GetGuiResources (0xffffffff,0): stub fixme:wtsapi:WTSQuerySessionInformationA Stub (nil) 0xffffffff 16 0x32e7dc 0x32e7d4 Adapters table wine: Call from 0x7b8397f2 to unimplemented function iphlpapi.dll._PfCreateInterface@24, aborting fixme:mshtml:activate_plugin No IQuickActivate
The activex control won't display in IE.
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #1 from fracting fracting@gmail.com 2011-02-07 22:44:50 CST --- Created an attachment (id=33189) --> (http://bugs.winehq.org/attachment.cgi?id=33189) Log: regsvr32 CMBEdit.dll
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #2 from fracting fracting@gmail.com 2011-02-07 22:47:19 CST --- Created an attachment (id=33190) --> (http://bugs.winehq.org/attachment.cgi?id=33190) log: wine iexplore
http://bugs.winehq.org/show_bug.cgi?id=26027
fracting fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #3 from fracting fracting@gmail.com 2011-02-07 22:50:47 CST ---
host a http server and serve index.html
wine iexplore http://0.0.0.0/DebitCardQueryPwd_Ctrl.html
Sorry for a typo. Here should be : host a http server and serve DebitCardQueryPwd_Ctrl.html
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #4 from Juan Lang juan_lang@yahoo.com 2011-02-16 10:11:38 CST --- Created an attachment (id=33316) --> (http://bugs.winehq.org/attachment.cgi?id=33316) Patch: Add PfCreateInterface stub
Does this help?
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #5 from fracting fracting@gmail.com 2011-02-16 10:59:55 CST --- (In reply to comment #4)
Created an attachment (id=33316)
--> (http://bugs.winehq.org/attachment.cgi?id=33316) [details]
Patch: Add PfCreateInterface stub
Does this help?
Thanks! After applying the patch, there is no crash. However, the control still won't display.
$ wine iexplore http://0.0.0.0/index.html fixme:ole:CoResumeClassObjects stub fixme:storage:create_storagefile Storage share mode not implemented. fixme:urlmon:URLMoniker_BindToObject use running object table fixme:shdocvw:BindStatusCallback_OnProgress status code 1 fixme:shdocvw:BindStatusCallback_OnProgress status code 2 fixme:shdocvw:BindStatusCallback_OnProgress status code 11 fixme:shdocvw:BindStatusCallback_OnProgress status code 14 fixme:msvcrt:_setmbcp trail bytes data not available for DBCS codepage 0 - assuming all bytes fixme:system:SetProcessDPIAware stub! fixme:iphlpapi:NotifyAddrChange (Handle 0x9ee914, overlapped 0x9ee918): stub fixme:ntdll:NtLockFile I/O completion on lock not implemented yet fixme:shdocvw:ClOleCommandTarget_QueryStatus (0x12f0e8)->((null) 1 0x32f04c (nil)) fixme:shdocvw:ClOleCommandTarget_QueryStatus command_0: 27, 0x0 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 25 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 26 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046} fixme:mshtml:nsURI_GetAsciiHost Use Uri_PUNYCODE_IDN_HOST flag fixme:mshtml:nsHttpChannelInternal_SetDocumentURI (0x15bf380)->() fixme:shdocvw:ClientSite_GetContainer (0x12f0e8)->(0x32f01c) fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046} fixme:wininet:InternetLockRequestFile STUB fixme:mshtml:nsChannel_IsNoCacheResponse (0x15bf380)->(0x32e2a0) fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 29 fixme:shdocvw:DocHostUIHandler_GetDropTarget (0x12f0e8) 0[14f690]: NPN Logging Active! 0[14f690]: General Plugin Logging Active! (nsPluginHost::ctor) 0[14f690]: NPP Logging Active! 0[14f690]: nsPluginHost::ctor fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d0-0000-0000-c000-000000000046} fixme:shdocvw:PropertyNotifySink_OnChanged unimplemented dispid 1005 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d0-0000-0000-c000-000000000046} fixme:resource:GetGuiResources (0xffffffff,0): stub fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 26 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 29 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046} fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented group {de4ba900-59ca-11cf-9592-444553540000} fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 35 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 28 fixme:mshtml:nsChannel_IsNoCacheResponse (0x15bf380)->(0x32f390) fixme:shdocvw:ClientSite_GetContainer (0x12f0e8)->(0x32f4ec) fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 25 fixme:shdocvw:ClOleCommandTarget_Exec Unimplemented cmdid 26 fixme:wtsapi:WTSQuerySessionInformationA Stub (nil) 0xffffffff 16 0x32e7ac 0x32e7a4 fixme:mshtml:activate_plugin No IQuickActivate
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #6 from fracting fracting@gmail.com 2011-02-16 11:01:59 CST ---
Thanks! After applying the patch, there is no crash.
Sorry for confusing, there was no crash without the patch as well. I confuse it with another bug.
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #7 from Juan Lang juan_lang@yahoo.com 2011-02-17 20:20:28 CST --- (In reply to comment #6)
Sorry for confusing, there was no crash without the patch as well. I confuse it with another bug.
Okay, now I'm confused. If there's no crash without the patch, does that mean it doesn't need this function after all?
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #8 from fracting fracting@gmail.com 2011-02-18 04:23:34 CST ---
Okay, now I'm confused. If there's no crash without the patch, does that mean it doesn't need this function after all?
I'm not sure either...
I test it with WINEDEBUG=iphlpapi , and find something strange.
Without the patch, there is something like below:
trace:iphlpapi:GetIpForwardTable pIpForwardTable (nil), pdwSize 0x32e75c, bOrder 0 trace:iphlpapi:AllocateAndGetIpForwardTableFromStack table 0x32e6b0, bOrder 0, heap 0x110000, flags 0x00000000 trace:iphlpapi:AllocateAndGetIpForwardTableFromStack returning ret 0 table 0x1613790 trace:iphlpapi:GetIpForwardTable returning 122 trace:iphlpapi:GetIpForwardTable pIpForwardTable 0x2130b78, pdwSize 0x32e75c, bOrder 0 trace:iphlpapi:AllocateAndGetIpForwardTableFromStack table 0x32e6b0, bOrder 0, heap 0x110000, flags 0x00000000 trace:iphlpapi:AllocateAndGetIpForwardTableFromStack returning ret 0 table 0x1613790 trace:iphlpapi:GetIpForwardTable returning 0 trace:iphlpapi:GetAdaptersInfo pAdapterInfo (nil), pOutBufLen 0x32e758 trace:iphlpapi:GetAdaptersInfo returning 111 trace:iphlpapi:GetAdaptersInfo pAdapterInfo 0x2133988, pOutBufLen 0x32e758 trace:iphlpapi:AllocateAndGetIpForwardTableFromStack table 0x32e68c, bOrder 0, heap 0x110000, flags 0x00000000 trace:iphlpapi:AllocateAndGetIpForwardTableFromStack returning ret 0 table 0x1613790 trace:iphlpapi:GetAdaptersInfo returning 0 wine: Call from 0x7b839332 to unimplemented function iphlpapi.dll._PfCreateInterface@24, aborting
But, after applying the patch, there is no trace from iphlpapi ...
attachments are the logs, hopes them helpful.
Thank you Juan ;-)
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #9 from fracting fracting@gmail.com 2011-02-18 04:25:09 CST --- Created an attachment (id=33327) --> (http://bugs.winehq.org/attachment.cgi?id=33327) Log: trace iphlpapi before patching
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #10 from fracting fracting@gmail.com 2011-02-18 04:26:01 CST --- Created an attachment (id=33328) --> (http://bugs.winehq.org/attachment.cgi?id=33328) Log: trace iphlpapi after patching
http://bugs.winehq.org/show_bug.cgi?id=26027
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Display ActiveX control of |ActiveX control of cmbchina |cmbchina online bank needs |online bank has no display |function | |iphlpapi.dll._PfCreateInter | |face |
--- Comment #11 from Juan Lang juan_lang@yahoo.com 2011-02-18 17:08:44 CST --- In that case, iphlpapi may not have anything to do with the missing display. You might try Jacek's gecko beta. Adjusting summary not to mention iphlpapi, since it may not be related.
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #12 from fracting fracting@gmail.com 2011-03-19 01:22:17 CDT --- Confirm this bug with wine1.3.16 and wine-gecko-1.2.0
http://bugs.winehq.org/show_bug.cgi?id=26027
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #13 from Jacek Caban jacek@codeweavers.com 2011-06-07 06:36:10 CDT --- The problem is that we do not yet support ActiveX controls without IQuickActivate interface implemented.
http://bugs.winehq.org/show_bug.cgi?id=26027
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #33316|0 |1 is obsolete| |
--- Comment #14 from Juan Lang juan_lang@yahoo.com 2011-06-09 11:52:20 CDT --- (From update of attachment 33316) A PfCreateInterface stub was committed, this is no longer needed.
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #15 from Jacek Caban jacek@codeweavers.com 2011-11-16 10:17:16 CST --- This patch fixes loading the control:
http://www.winehq.org/pipermail/wine-patches/2011-November/108926.html
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #16 from Austin English austinenglish@gmail.com 2011-11-16 13:10:06 CST --- (In reply to comment #15)
This patch fixes loading the control:
http://www.winehq.org/pipermail/wine-patches/2011-November/108926.html
Please retest: http://source.winehq.org/git/wine.git/commitdiff/d4aacad9ea02ca3ff9ff2045911...
http://bugs.winehq.org/show_bug.cgi?id=26027
--- Comment #17 from fracting fracting@gmail.com 2011-11-16 20:47:05 CST --- (In reply to comment #16)
(In reply to comment #15)
This patch fixes loading the control:
http://www.winehq.org/pipermail/wine-patches/2011-November/108926.html
Please retest: http://source.winehq.org/git/wine.git/commitdiff/d4aacad9ea02ca3ff9ff2045911...
Fixed, thanks Juan, Jacek and Austin!
http://bugs.winehq.org/show_bug.cgi?id=26027
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |d4aacad9ea02ca3ff9ff2045911 | |97808123cf652 Status|NEW |RESOLVED CC| |00cpxxx@gmail.com Resolution| |FIXED
--- Comment #18 from Bruno Jesus 00cpxxx@gmail.com 2011-11-17 06:31:41 CST ---
Fixed, thanks Juan, Jacek and Austin!
Marking fixed.
http://bugs.winehq.org/show_bug.cgi?id=26027
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #19 from Alexandre Julliard julliard@winehq.org 2011-11-18 13:04:55 CST --- Closing bugs fixed in 1.3.33.