mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
[KBSWITCH] Use StringCchCopy instead of lstrcpyn
This commit is contained in:
parent
0991cedca7
commit
3892252bc5
|
@ -59,7 +59,7 @@ CreateTrayIcon(LPTSTR szLCID)
|
|||
ZeroMemory(&lf, sizeof(lf));
|
||||
lf.lfHeight = -11;
|
||||
lf.lfCharSet = ANSI_CHARSET;
|
||||
lstrcpyn(lf.lfFaceName, _T("Tahoma"), ARRAYSIZE(lf.lfFaceName));
|
||||
StringCchCopy(lf.lfFaceName, ARRAYSIZE(lf.lfFaceName), _T("Tahoma"));
|
||||
hFont = CreateFontIndirect(&lf);
|
||||
|
||||
SetRect(&rect, 0, 0, CX_ICON, CY_ICON);
|
||||
|
|
Loading…
Reference in a new issue