Commit f2432a8b authored by Andrey Turkin's avatar Andrey Turkin Committed by Alexandre Julliard

ntdll: Handle invalid pointers in NtQueryInformationProcess(ProcessDebugObjectHandle).

parent 29af4f9f
......@@ -304,7 +304,14 @@ NTSTATUS WINAPI NtQueryInformationProcess(
* set it to 0 aka "no debugger" to satisfy copy protections */
len = sizeof(HANDLE);
if (ProcessInformationLength == len)
{
if (!ProcessInformation)
ret = STATUS_ACCESS_VIOLATION;
else if (!ProcessHandle)
ret = STATUS_INVALID_HANDLE;
else
memset(ProcessInformation, 0, ProcessInformationLength);
}
else
ret = STATUS_INFO_LENGTH_MISMATCH;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment