mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[NTUSER] Set error on NtUserCreateInputContext (#4444)
Set the error code correctly on NtUserCreateInputContext. CORE-11700
This commit is contained in:
parent
0f1e19a7b6
commit
88c1d8c737
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue