[PATCH] Don't enforce process handle access rights in Win98 mode (fixes dcom98 ncalrpc)

Mike Hearn mike at plan99.net
Fri Mar 31 06:48:20 CST 2006

Sending here until wine-patches stops eating my email.

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)

More information about the wine-devel mailing list