kernel: Documentation-Update for WideCharToMultiByte

Detlef Riekenberg at
Mon Jun 5 05:30:58 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 Testsuite was updated to verify this.
The attached Patch updates the documentation.

- kernel: Documentation-Update for WideCharToMultiByte

By By ...
      ... Detlef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: doc_wc2mb.diff
Type: text/x-patch
Size: 1318 bytes
Desc: not available
Url :

More information about the wine-patches mailing list