mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Return "no debugger attached" in NtQueryInformationProcess to satisfy
some copy protection mechanisms.
This commit is contained in:
parent
9a5b0d4fbf
commit
12298c5cad
1 changed files with 7 additions and 1 deletions
|
@ -97,7 +97,13 @@ NTSTATUS WINAPI NtQueryInformationProcess(
|
|||
OUT PULONG ReturnLength)
|
||||
{
|
||||
FIXME("(0x%08x,0x%08x,%p,0x%08lx,%p),stub!\n",
|
||||
ProcessHandle,ProcessInformationClass,ProcessInformation,ProcessInformationLength,ReturnLength);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue