mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
shell32: Pass number of wide chars, not bytes as last argument to MBtoWC().
This commit is contained in:
parent
06dd3efe2f
commit
267e660bd6
@ -54,18 +54,18 @@ BOOL WINAPI Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA pnid)
|
||||
nidW.hIcon = pnid->hIcon;
|
||||
|
||||
/* szTip */
|
||||
MultiByteToWideChar(CP_ACP, 0, pnid->szTip, sizeof(pnid->szTip), nidW.szTip, sizeof(nidW.szTip));
|
||||
MultiByteToWideChar(CP_ACP, 0, pnid->szTip, -1, nidW.szTip, sizeof(nidW.szTip)/sizeof(WCHAR));
|
||||
|
||||
nidW.dwState = pnid->dwState;
|
||||
nidW.dwStateMask = pnid->dwStateMask;
|
||||
|
||||
/* szInfo */
|
||||
MultiByteToWideChar(CP_ACP, 0, pnid->szInfo, sizeof(pnid->szInfo), nidW.szInfo, sizeof(nidW.szInfo));
|
||||
MultiByteToWideChar(CP_ACP, 0, pnid->szInfo, -1, nidW.szInfo, sizeof(nidW.szInfo)/sizeof(WCHAR));
|
||||
|
||||
nidW.u.uTimeout = pnid->u.uTimeout;
|
||||
|
||||
/* szInfoTitle */
|
||||
MultiByteToWideChar(CP_ACP, 0, pnid->szInfoTitle, sizeof(pnid->szInfoTitle), nidW.szInfoTitle, sizeof(nidW.szInfoTitle));
|
||||
MultiByteToWideChar(CP_ACP, 0, pnid->szInfoTitle, -1, nidW.szInfoTitle, sizeof(nidW.szInfoTitle)/sizeof(WCHAR));
|
||||
|
||||
nidW.dwInfoFlags = pnid->dwInfoFlags;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user