advpack: Forward the remaining advpack.c ansi functions to their unicode counterparts

Mike McCormack mike at codeweavers.com
Wed Mar 22 20:46:19 CST 2006


James Hawkins wrote:

> Would MultiByteToWideChar(CP_ACP, 0, pPerUser->szGUID, -1,
> perUserW.szGUID, sizeof(perUserW.szGUID)) be a better solution?

The counts for both A and W are in characters, and sizeof() gives bytes, 
so you need to divide the sizeof a WCHAR array by sizeof(WCHAR) to get 
the number of characters in the array.

Mike



More information about the wine-devel mailing list