http://bugs.winehq.org/show_bug.cgi?id=14703
Summary: Null character comparison problem in vb6 application Product: Wine Version: 1.1.2 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: oleaut32 AssignedTo: wine-bugs@winehq.org ReportedBy: gabmoa@yahoo.it
Created an attachment (id=15189) --> (http://bugs.winehq.org/attachment.cgi?id=15189) simple vb6 chr0 comparison project
I've found a BIG problem in VB6 string (BSTR) comparison.
The VB6 program perform this very simple check. In Windows s is different from chr$(0) (null char) but in wine NOT!
s = "" If s = Chr$(0) Then MsgBox "ERROR, MUST NOT BE EQUAL!!!" Else MsgBox "OK!"
[see attachment]
This is a major bug, since chr$(0) is used in many ways in vb6 (and also in API)
I've tried this simple program in Wine 0.9.49 and wine 1.1.2 with the same result. I think this bug should be fixed for wine 1.2!
http://bugs.winehq.org/show_bug.cgi?id=14703
Gabriele Moabiti gabmoa@yahoo.it changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|other |Linux Platform|Other |PC
http://bugs.winehq.org/show_bug.cgi?id=14703
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox_xerox2000@yahoo.co.uk Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |download, source
--- Comment #1 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2008-07-31 16:22:58 --- confirming
http://bugs.winehq.org/show_bug.cgi?id=14703
--- Comment #2 from Lei Zhang thestig@google.com 2008-07-31 20:44:37 --- Created an attachment (id=15201) --> (http://bugs.winehq.org/attachment.cgi?id=15201) patch to fix VarBstrCmp
Does this patch help?
http://bugs.winehq.org/show_bug.cgi?id=14703
--- Comment #3 from Gabriele Moabiti gabmoa@yahoo.it 2008-08-01 03:05:41 --- Fixed!
http://bugs.winehq.org/show_bug.cgi?id=14703
--- Comment #4 from Gabriele Moabiti gabmoa@yahoo.it 2008-08-01 08:03:18 --- ... I hope it will be in 1.2 :) thank you
http://bugs.winehq.org/show_bug.cgi?id=14703
--- Comment #5 from Lei Zhang thestig@google.com 2008-08-04 17:41:28 --- (better) patch sent:
http://www.winehq.org/pipermail/wine-patches/2008-August/059181.html
http://bugs.winehq.org/show_bug.cgi?id=14703
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thestig@google.com
http://bugs.winehq.org/show_bug.cgi?id=14703
--- Comment #6 from Gabriele Moabiti gabmoa@yahoo.it 2009-03-16 15:26:20 ---
Excuse me but why the patch isn't already in wine git tree? I think this is a subtle (so important) bug.
http://bugs.winehq.org/show_bug.cgi?id=14703
--- Comment #7 from Lei Zhang thestig@google.com 2009-03-16 17:13:57 --- Whoops. Apparently I left this one hanging. [1] I'll send a new patch this week?
[1] http://www.winehq.org/pipermail/wine-devel/2008-August/068044.html
http://bugs.winehq.org/show_bug.cgi?id=14703
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #8 from Lei Zhang thestig@google.com 2009-03-24 13:05:38 --- Patch committed:
http://www.winehq.org/pipermail/wine-cvs/2009-March/054176.html
http://bugs.winehq.org/show_bug.cgi?id=14703
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2009-03-27 13:53:25 --- Closing bugs fixed in 1.1.18.