mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[NTUSER] Set error on NtUserCreateInputContext (#4444)
Set the error code correctly on NtUserCreateInputContext. CORE-11700
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user