mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:33:12 +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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue