ntdll: Fix vartype and naming and set a sane value
André Hentschel
nerv at dawncrow.de
Mon Jan 3 13:42:30 CST 2011
---
dlls/ntdll/nt.c | 6 ++++--
include/winternl.h | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index 0fbd2a9..dc8b3b7 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -1746,13 +1746,15 @@ NTSTATUS WINAPI NtQuerySystemInformation(
/* Something to do with the size of the registry *
* Since we don't have a size limitation, fake it *
* This is almost certainly wrong. *
- * This sets each of the three words in the struct to 32 MB, *
+ * This fakes the max registry size of 32 MB, *
+ * a used size of 2 MB and PagedPoolSize (which should be at *
+ * least 125 % of RegistryQuotaAllowed) to maximum, *
* which is enough to make the IE 5 installer happy. */
SYSTEM_REGISTRY_QUOTA_INFORMATION srqi;
srqi.RegistryQuotaAllowed = 0x2000000;
srqi.RegistryQuotaUsed = 0x200000;
- srqi.Reserved1 = (void*)0x200000;
+ srqi.PagedPoolSize = 0xffffffff;
len = sizeof(srqi);
if ( Length >= len)
diff --git a/include/winternl.h b/include/winternl.h
index d40c701..1fc1db1 100644
--- a/include/winternl.h
+++ b/include/winternl.h
@@ -1376,7 +1376,7 @@ typedef struct _SYSTEM_PROCESS_INFORMATION {
typedef struct _SYSTEM_REGISTRY_QUOTA_INFORMATION {
ULONG RegistryQuotaAllowed;
ULONG RegistryQuotaUsed;
- PVOID Reserved1;
+ ULONG PagedPoolSize;
} SYSTEM_REGISTRY_QUOTA_INFORMATION, *PSYSTEM_REGISTRY_QUOTA_INFORMATION;
typedef struct _SYSTEM_TIME_ADJUSTMENT {
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list