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

Wine Bugs wine-bugs at winehq.org
Wed Jun 21 12:46:55 CDT 2006


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


juan_lang at yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #2690 is|0                           |1
           obsolete|                            |




------- Additional Comments From juan_lang at yahoo.com  2006-21-06 12:46 -------
Created an attachment (id=2691)
 --> (http://bugs.winehq.org/attachment.cgi?id=2691&action=view)
Partial fix

Never mind, don't test that patch, it doesn't help.  There appear to be several
bugs:

1. VarBstrCmp was passing -1 to CompareStringW, meaning it expected the BSTRs
to be NULL-terminated.	This is wrong, and the previous patch addressed that.
2. VarBstrCat was assuming its arguments were NULL-terminated.	This is also
wrong, and this patch addresses that.
3. CompareStringW only compares until a NULL.  This needs a test case to show
the correct behavior.

-- 
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