Module: wine Branch: oldstable Commit: c115fde85c4ce7613a5b4d0e6f9d37fa28f959f4 URL: https://source.winehq.org/git/wine.git/?a=commit;h=c115fde85c4ce7613a5b4d0e6...
Author: Andrew Wesie awesie@gmail.com Date: Sun Sep 16 23:24:25 2018 +0000
ntdll: Stub for ProcessCookie in NtQueryInformationProcess.
Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit 86878fe00bcae8dffe0e85ac8607d9be4d863d8d) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/ntdll/process.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
diff --git a/dlls/ntdll/process.c b/dlls/ntdll/process.c index a0db5c3..3a5bedf 100644 --- a/dlls/ntdll/process.c +++ b/dlls/ntdll/process.c @@ -572,6 +572,22 @@ NTSTATUS WINAPI NtQueryInformationProcess( else ret = STATUS_INFO_LENGTH_MISMATCH; break; + case ProcessCookie: + FIXME("ProcessCookie (%p,%p,0x%08x,%p) stub\n", + ProcessHandle,ProcessInformation, + ProcessInformationLength,ReturnLength); + + if(ProcessHandle == NtCurrentProcess()) + { + len = sizeof(ULONG); + if (ProcessInformationLength == len) + *(ULONG *)ProcessInformation = 0; + else + ret = STATUS_INFO_LENGTH_MISMATCH; + } + else + ret = STATUS_INVALID_PARAMETER; + break; default: FIXME("(%p,info_class=%d,%p,0x%08x,%p) Unknown information class\n", ProcessHandle,ProcessInformationClass,