[Bug 5469] VB6.0 string compare gives wrong result

Wine Bugs wine-bugs at winehq.org
Wed Jun 21 04:33:03 CDT 2006


http://bugs.winehq.org/show_bug.cgi?id=5469





------- Additional Comments From charles at diagnos.co.uk  2006-21-06 04:33 -------
Created an attachment (id=2688)
 --> (http://bugs.winehq.org/attachment.cgi?id=2688&action=view)
Sample program source and executable

Zipfile containing the VB6 source files (Form1.frm and Project1.vbp) and the
compiled executable (Project2.exe).

On running it, it creates an empty window.  A msgbox pops up (saying "Error")
if the compare mistakenly matches the two different strings:

  a$ = Chr$(1) + Chr$(0) + Chr$(1)

  If a$ = Chr$(1) + Chr$(0) + Chr$(2) Then MsgBox ("Error")

Under Windows XP, no msgbox appears.
Under the latest version of Wine, the Error msgbox does appear.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list