mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
parent
8a48446d11
commit
787bbf0693
1 changed files with 1 additions and 1 deletions
|
@ -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] || wcschr(szImeFileName, L'\\') != NULL)
|
||||
if (!szImeFileName[0] || wcsspn(szImeFileName, L":\\/") != wcslen(szImeFileName))
|
||||
break;
|
||||
|
||||
Imm32StrToUInt(szImeKey, &Value, 16);
|
||||
|
|
Loading…
Reference in a new issue