Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Joan Roque-Worcel
wine
Commits
664485ed
Commit
664485ed
authored
24 years ago
by
James Juran
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Return a maximum registry size of 32 MB in NtQuerySystemInformation.
parent
27698b5c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/ntdll/nt.c
+21
-2
21 additions, 2 deletions
dlls/ntdll/nt.c
with
21 additions
and
2 deletions
dlls/ntdll/nt.c
+
21
−
2
View file @
664485ed
...
...
@@ -581,6 +581,7 @@ NTSTATUS WINAPI NtCreateMailslotFile(DWORD x1,DWORD x2,DWORD x3,DWORD x4,DWORD x
* 0x12/0x18
* 0x2/0x138
* 0x8/0x600
* 0x25/0xc
* SystemInformation caller supplies storage for the information structure
* Length size of the structure
* ResultLength Data written
...
...
@@ -591,10 +592,28 @@ NTSTATUS WINAPI NtQuerySystemInformation(
IN
ULONG
Length
,
OUT
PULONG
ResultLength
)
{
switch
(
SystemInformationClass
)
{
case
0x25
:
/* 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, *
* which is enough to make the IE 5 installer happy. */
FIXME
(
"(0x%08x,%p,0x%08lx,%p) faking max registry size of 32 MB
\n
"
,
SystemInformationClass
,
SystemInformation
,
Length
,
ResultLength
);
*
(
DWORD
*
)
SystemInformation
=
0x2000000
;
*
(((
DWORD
*
)
SystemInformation
)
+
1
)
=
0x200000
;
*
(((
DWORD
*
)
SystemInformation
)
+
2
)
=
0x200000
;
break
;
default:
FIXME
(
"(0x%08x,%p,0x%08lx,%p) stub
\n
"
,
SystemInformationClass
,
SystemInformation
,
Length
,
ResultLength
);
SystemInformationClass
,
SystemInformation
,
Length
,
ResultLength
);
ZeroMemory
(
SystemInformation
,
Length
);
return
0
;
}
return
STATUS_SUCCESS
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment