Rebase against 04b829e81b3da1e98964dee4df0be4c876745f00.

This commit is contained in:
Zebediah Figura 2024-04-16 18:04:01 -05:00
parent 164a792cb2
commit 1f578b2d53
3 changed files with 1 additions and 65 deletions

View File

@ -1,63 +0,0 @@
From 8c7d326435794a72c70e05acdff945edf506ec3c Mon Sep 17 00:00:00 2001
From: Qian Hong <qhong@codeweavers.com>
Date: Wed, 21 Oct 2015 06:23:22 +0800
Subject: [PATCH] ntdll: Add fake data implementation for ProcessQuotaLimits
class.
---
dlls/ntdll/unix/process.c | 32 +++++++++++++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/process.c b/dlls/ntdll/unix/process.c
index 93d7e7b0140..ae3ab9a8058 100644
--- a/dlls/ntdll/unix/process.c
+++ b/dlls/ntdll/unix/process.c
@@ -1050,7 +1050,6 @@ NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class
switch (class)
{
- UNIMPLEMENTED_INFO_CLASS(ProcessQuotaLimits);
UNIMPLEMENTED_INFO_CLASS(ProcessBasePriority);
UNIMPLEMENTED_INFO_CLASS(ProcessRaisePriority);
UNIMPLEMENTED_INFO_CLASS(ProcessExceptionPort);
@@ -1109,6 +1108,37 @@ NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class
}
break;
+ case ProcessQuotaLimits:
+ {
+ QUOTA_LIMITS pqli;
+
+ if (size >= sizeof(QUOTA_LIMITS))
+ {
+ if (!info)
+ ret = STATUS_ACCESS_VIOLATION;
+ else if (!handle)
+ ret = STATUS_INVALID_HANDLE;
+ else
+ {
+ /* FIXME : real data */
+ memset(&pqli, 0, sizeof(QUOTA_LIMITS));
+
+ memcpy(info, &pqli, sizeof(QUOTA_LIMITS));
+
+ len = sizeof(QUOTA_LIMITS);
+ }
+
+ if (size > sizeof(QUOTA_LIMITS))
+ ret = STATUS_INFO_LENGTH_MISMATCH;
+ }
+ else
+ {
+ len = sizeof(QUOTA_LIMITS);
+ ret = STATUS_INFO_LENGTH_MISMATCH;
+ }
+ }
+ break;
+
case ProcessIoCounters:
{
IO_COUNTERS pii;
--
2.27.0

View File

@ -1 +0,0 @@
Fixes: [44812] Multiple applications need NtQueryInformationProcess 'ProcessQuotaLimits' class support (MSYS2, ProcessHacker 2.x)

View File

@ -1 +1 @@
00198c4084a61f65f18574d16833d945e50c0614
04b829e81b3da1e98964dee4df0be4c876745f00