mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +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
|
@ -1377,14 +1377,18 @@ NtUserCreateInputContext(ULONG_PTR dwClientImcData)
|
||||||
PIMC pIMC;
|
PIMC pIMC;
|
||||||
HIMC ret = NULL;
|
HIMC ret = NULL;
|
||||||
|
|
||||||
if (!dwClientImcData)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
UserEnterExclusive();
|
UserEnterExclusive();
|
||||||
|
|
||||||
if (!IS_IMM_MODE())
|
if (!IS_IMM_MODE())
|
||||||
{
|
{
|
||||||
ERR("!IS_IMM_MODE()\n");
|
ERR("!IS_IMM_MODE()\n");
|
||||||
|
EngSetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
goto Quit;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!dwClientImcData)
|
||||||
|
{
|
||||||
|
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||||
goto Quit;
|
goto Quit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue