[USER32] Fix build; Appendum to 21feb52

CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-10-19 17:40:34 +09:00
parent 21feb529fe
commit 7523bf84a5

View file

@ -382,7 +382,7 @@ VOID APIENTRY CliGetPreloadKeyboardLayouts(PBYTE pbFlags)
for (iNumber = 1; iNumber < 1000; ++iNumber)
{
RtlIntegerToUnicode(iNumber, 10, sizeof(szValueName), szValueName);
StringCchPrintfW(szValueName, _countof(szValueName), L"%u", iNumber);
cbValue = sizeof(szValue);
error = RegQueryValueExW(hKey, szValueName, NULL, &dwType, (LPBYTE)szValue, &cbValue);