[NTUSER] Set error on NtUserCreateInputContext (#4444)

Set the error code correctly on NtUserCreateInputContext.
CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-04-10 19:26:19 +09:00 committed by GitHub
parent 0f1e19a7b6
commit 88c1d8c737
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1377,14 +1377,18 @@ NtUserCreateInputContext(ULONG_PTR dwClientImcData)
PIMC pIMC;
HIMC ret = NULL;
if (!dwClientImcData)
return NULL;
UserEnterExclusive();
if (!IS_IMM_MODE())
{
ERR("!IS_IMM_MODE()\n");
EngSetLastError(ERROR_CALL_NOT_IMPLEMENTED);
goto Quit;
}
if (!dwClientImcData)
{
EngSetLastError(ERROR_INVALID_PARAMETER);
goto Quit;
}