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!