Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b50a532a
Commit
b50a532a
authored
May 01, 2002
by
Laurent Pinchart
Committed by
Alexandre Julliard
May 01, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed NtQueryInformationProcess to return correct information and
error code for ProcessDebugPort when no debugger is attached.
parent
0314a65a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
9 deletions
+28
-9
nt.c
dlls/ntdll/nt.c
+28
-9
No files found.
dlls/ntdll/nt.c
View file @
b50a532a
...
...
@@ -116,15 +116,34 @@ NTSTATUS WINAPI NtQueryInformationProcess(
IN
ULONG
ProcessInformationLength
,
OUT
PULONG
ReturnLength
)
{
FIXME
(
"(0x%08x,0x%08x,%p,0x%08lx,%p),stub!
\n
"
,
ProcessHandle
,
ProcessInformationClass
,
ProcessInformation
,
ProcessInformationLength
,
ReturnLength
);
/* "These are not the debuggers you are looking for." */
if
(
ProcessInformationClass
==
ProcessDebugPort
)
/* set it to 0 aka "no debugger" to satisfy copy protections */
memset
(
ProcessInformation
,
0
,
ProcessInformationLength
);
return
0
;
NTSTATUS
ret
=
STATUS_SUCCESS
;
ULONG
len
=
0
;
switch
(
ProcessInformationClass
)
{
case
ProcessDebugPort
:
/* "These are not the debuggers you are looking for." */
/* set it to 0 aka "no debugger" to satisfy copy protections */
if
(
ProcessInformationLength
==
4
)
{
memset
(
ProcessInformation
,
0
,
ProcessInformationLength
);
len
=
4
;
}
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
break
;
default:
FIXME
(
"(0x%08x,0x%08x,%p,0x%08lx,%p),stub!
\n
"
,
ProcessHandle
,
ProcessInformationClass
,
ProcessInformation
,
ProcessInformationLength
,
ReturnLength
);
break
;
}
if
(
ReturnLength
)
*
ReturnLength
=
len
;
return
ret
;
}
/******************************************************************************
...
...
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