mirror of
https://github.com/reactos/reactos.git
synced 2025-08-08 11:23:27 +00:00
[USER32][IMM32] Use wcscspn instead of wcsspn
b4575ec
anddb00a75
were my mistakes. CORE-11700
This commit is contained in:
parent
46de3a22ac
commit
f79e80c520
2 changed files with 2 additions and 2 deletions
|
@ -909,7 +909,7 @@ UINT APIENTRY Imm32GetImeLayout(PREG_IME pLayouts, UINT cLayouts)
|
||||||
RegCloseKey(hkeyIME);
|
RegCloseKey(hkeyIME);
|
||||||
|
|
||||||
/* We don't allow the invalid "IME File" values for security reason */
|
/* 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;
|
break;
|
||||||
|
|
||||||
Imm32StrToUInt(szImeKey, &Value, 16);
|
Imm32StrToUInt(szImeKey, &Value, 16);
|
||||||
|
|
|
@ -805,7 +805,7 @@ IntLoadKeyboardLayout(
|
||||||
|
|
||||||
/* We don't allow the invalid "IME File" values for security reason */
|
/* We don't allow the invalid "IME File" values for security reason */
|
||||||
if (dwType != REG_SZ || szImeFileName[0] == 0 ||
|
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? */
|
GetFileAttributesW(szPath) == INVALID_FILE_ATTRIBUTES) /* Does not exist? */
|
||||||
{
|
{
|
||||||
bIsIME = FALSE;
|
bIsIME = FALSE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue