diff --git a/ntoskrnl/ps/job.c b/ntoskrnl/ps/job.c index 8b130010bfd..9526e2be0dc 100644 --- a/ntoskrnl/ps/job.c +++ b/ntoskrnl/ps/job.c @@ -546,10 +546,10 @@ NtQueryInformationJobObject ( ProbeForWrite(JobInformation, JobInformationLength, RequiredAlign); } - /* But also return lenght if asked */ + /* But also return length if asked */ if (ReturnLength != NULL) { - ProbeForWrite(JobInformation, sizeof(ULONG), sizeof(ULONG)); + ProbeForWriteUlong(ReturnLength); } } _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)