Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f2432a8b
Commit
f2432a8b
authored
Oct 06, 2009
by
Andrey Turkin
Committed by
Alexandre Julliard
Oct 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Handle invalid pointers in NtQueryInformationProcess(ProcessDebugObjectHandle).
parent
29af4f9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
process.c
dlls/ntdll/process.c
+8
-1
No files found.
dlls/ntdll/process.c
View file @
f2432a8b
...
@@ -304,7 +304,14 @@ NTSTATUS WINAPI NtQueryInformationProcess(
...
@@ -304,7 +304,14 @@ NTSTATUS WINAPI NtQueryInformationProcess(
* set it to 0 aka "no debugger" to satisfy copy protections */
* set it to 0 aka "no debugger" to satisfy copy protections */
len
=
sizeof
(
HANDLE
);
len
=
sizeof
(
HANDLE
);
if
(
ProcessInformationLength
==
len
)
if
(
ProcessInformationLength
==
len
)
memset
(
ProcessInformation
,
0
,
ProcessInformationLength
);
{
if
(
!
ProcessInformation
)
ret
=
STATUS_ACCESS_VIOLATION
;
else
if
(
!
ProcessHandle
)
ret
=
STATUS_INVALID_HANDLE
;
else
memset
(
ProcessInformation
,
0
,
ProcessInformationLength
);
}
else
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment