diff --git a/reactos/subsys/win32k/ntuser/accelerator.c b/reactos/subsys/win32k/ntuser/accelerator.c index 138a135f25a..32f3d44cda7 100644 --- a/reactos/subsys/win32k/ntuser/accelerator.c +++ b/reactos/subsys/win32k/ntuser/accelerator.c @@ -359,7 +359,7 @@ NtUserCreateAcceleratorTable( if (Accel->Table == NULL) { ObmDeleteObject(hAccel, otAccel); - SetLastNtError(Status); + SetLastNtError(STATUS_NO_MEMORY); RETURN( (HACCEL) 0); }