kernel/tests: Some tests for WideCharToMultiByte

Detlef Riekenberg at
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

The attached Tests validate this:

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

More information about the wine-patches mailing list