[Bug 16195] GetKeyNameTextW returns a wrong length

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Nov 26 23:02:30 CST 2008


http://bugs.winehq.org/show_bug.cgi?id=16195





--- Comment #7 from Dmitry Timoshkov <dmitry at codeweavers.com>  2008-11-26 23:02:29 ---
(In reply to comment #6)

>            int len;
>            len = MultiByteToWideChar(CP_UNIXCP, 0, name, -1, lpBuffer, nSize);
>            lpBuffer[len - 1] = 0;
>            return len;

Looks good, please send to wine-patches. You even can eliminate introducing
'len' by reusing 'nSize'.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list