Conformance tests for LoadStringW and LoadStringA
Christopher
raccoonone at procyongames.com
Wed Feb 27 15:24:30 CST 2008
Changes:
Added more tests for LoadStringW and LoadStringA
Details:
LoadStringW and LoadStringA deviate from standard Windows behavior. Both
of them will return the length of the resource when passed a NULL
pointer; however, this does not work under Windows. Also under Windows
LoadStringW returns a pointer to the resource itself when passed a
bufferlength of 0; this does not work under Wine. This is also the cause
of bug #10932 <http://bugs.winehq.org/show_bug.cgi?id=10932>.
I wrote these tests to make it easier to check that LoadString is
working properly, when someone has time to fix this. Fixing LoadStringW
may be difficult as it is called in a lot of places in the Wine source,
and each of these will need to be inspected since some rely on the call
with NULL pointer behavior to get the resource length.
Christopher Berner
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Conformance-tests-for-LoadString-to-show-wrong-beha.patch
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080227/e71fd533/attachment.txt
More information about the wine-patches
mailing list