cckec / winetricks

Automatically exported from code.google.com/p/winetricks
0 stars 0 forks source link

crash by unimplemented function msvcrt.dll._snwprintf_s called after mfc42 installed #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install mfc42 using winetricks
$ winetricks -q mfc42

2. download and resgist the ActiveX control
$ wget https://mybank.icbc.com.cn/icbc/newperbank/AxSafeControls.cab
$ cabextract AxSafeControls.cab
$ regsvr32 InputControl.dll 

3. write an html page like below, put it on a http server,

<object
        id="safeEdit1" classid="CLSID:73E4740C-08EB-4133-896B-8D0A7C9EE3CD" 
        codebase="/icbc/newperbank/AxSafeControls.cab#version=1,0,0,13" 
        width="145" height="21"
        onkeyup="getfocus1(&quot;KeyPart&quot;)">
</object>

4. open the html page with wine buitin IE, then crash

Please see attachment for log.

What version of the product are you using? On what operating system?

wine1.3.15
wine-gecko-1.2.0rc1
several versions of winetricks, include 20110310-alpha

Please provide any additional information below.

I'm not sure whether this a wine bug or a winetricks bug, what do you think?
There is no crash with wine1.3.9, so maybe it is a regression of wine itself?

Thanks!

Original issue reported on code.google.com by fracting@gmail.com on 16 Mar 2011 at 9:17

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for your good bug report.  I think this is a winetricks bug, 
the mfc42 verb should not also be replacing msvcrt.  I'll have a look.

Original comment by daniel.r...@gmail.com on 16 Mar 2011 at 1:36

GoogleCodeExporter commented 8 years ago
Hi, Dan, is there any update of this issue with the latest winetricks-20110324 ?
Thanks ;-)

Original comment by fracting@gmail.com on 24 Mar 2011 at 6:35

GoogleCodeExporter commented 8 years ago
I didn't have time to fix it for that release but it's on my list.

Original comment by daniel.r...@gmail.com on 24 Mar 2011 at 7:15

GoogleCodeExporter commented 8 years ago
Does the attached patch work for you?  It's nearly untested.

Original comment by daniel.r...@gmail.com on 24 Mar 2011 at 7:55

Attachments:

GoogleCodeExporter commented 8 years ago
Yes, thanks for your time!

Original comment by fracting@gmail.com on 25 Mar 2011 at 1:29

GoogleCodeExporter commented 8 years ago
Committed.

Original comment by daniel.r...@gmail.com on 25 Mar 2011 at 4:23