[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: Don't enforce process handle access rights in Win98 mode (fixes
From: Mike Hearn <mh () codeweavers ! com>
Date: 2006-03-31 13:02:05
Message-ID: 442D284D.7020609 () codeweavers ! com
[Download RAW message or body]
Apologies if you get this more than once.
IMHO this would best be done in get_obj_from_handle in the server,
but this approach is what the registry APIs do and what Rob suggested,
so here it is.
diff --git a/dlls/kernel/process.c b/dlls/kernel/process.c
index 4263a22..d5017c4 100644
--- a/dlls/kernel/process.c
+++ b/dlls/kernel/process.c
@@ -2265,6 +2265,8 @@ HANDLE WINAPI OpenProcess( DWORD access,
attr.SecurityQualityOfService = NULL;
attr.ObjectName = NULL;
+ if (GetVersion() & 0x80000000) access = PROCESS_ALL_ACCESS;
+
status = NtOpenProcess(&handle, access, &attr, &cid);
if (status != STATUS_SUCCESS)
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic