mirror of
https://github.com/reactos/reactos.git
synced 2026-05-23 07:40:09 +08:00
[USER32][IMM32] Use wcscspn instead of wcsspn
b4575ecanddb00a75were my mistakes. CORE-11700
This commit is contained in:
@@ -909,7 +909,7 @@ UINT APIENTRY Imm32GetImeLayout(PREG_IME pLayouts, UINT cLayouts)
|
||||
RegCloseKey(hkeyIME);
|
||||
|
||||
/* We don't allow the invalid "IME File" values for security reason */
|
||||
if (!szImeFileName[0] || wcsspn(szImeFileName, L":\\/") != wcslen(szImeFileName))
|
||||
if (!szImeFileName[0] || wcscspn(szImeFileName, L":\\/") != wcslen(szImeFileName))
|
||||
break;
|
||||
|
||||
Imm32StrToUInt(szImeKey, &Value, 16);
|
||||
|
||||
@@ -805,7 +805,7 @@ IntLoadKeyboardLayout(
|
||||
|
||||
/* We don't allow the invalid "IME File" values for security reason */
|
||||
if (dwType != REG_SZ || szImeFileName[0] == 0 ||
|
||||
wcsspn(szImeFileName, L":\\/") != wcslen(szImeFileName) ||
|
||||
wcscspn(szImeFileName, L":\\/") != wcslen(szImeFileName) ||
|
||||
GetFileAttributesW(szPath) == INVALID_FILE_ATTRIBUTES) /* Does not exist? */
|
||||
{
|
||||
bIsIME = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user