kernel/tests: Some tests for WideCharToMultiByte
Detlef Riekenberg
wine.dev at web.de
Mon Jun 5 05:30:41 CDT 2006
MSDN and our Documentation told us, that WC2MB returns on Success:
* If dstlen > 0, the number of characters written to dst.
* ... the count includes the terminating NUL.
This is only valid, when the destination buffer is large enough to
receive the Result with the terminating NUL.
When the destination buffer is to small, WC2MB returns '0' and
GetLastError() returns ERROR_INSUFFICIENT_BUFFER.
The attached Tests validate this:
Changelog:
- kernel/tests: Some tests for WideCharToMultiByte
--
By By ...
... Detlef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_wc2mb.diff
Type: text/x-patch
Size: 3373 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060605/cd65ca92/test_wc2mb.diff
More information about the wine-patches
mailing list