msxml3: tests/xmlelem.c: VT_EMPTY is not a string

Dan Kegel dank at kegel.com
Fri Jun 6 19:27:54 CDT 2008


Casting a VT_EMPTY to a string gets you a null string.
The test was doing that and taking the string length, then comparing to zero.
Better to simply compare to null; that's a stronger test, and
avoids generating a behind-the-scenes exception.

Passes on Wine and XP, and makes Valgrind output a bit easier on the eyes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msxml3-empty.patch
Type: text/x-patch
Size: 1022 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080606/48904342/attachment.bin 


More information about the wine-patches mailing list