Skip to content

Instantly share code, notes, and snippets.

@israelfaria
Created February 21, 2012 14:02
Show Gist options
  • Save israelfaria/1876708 to your computer and use it in GitHub Desktop.
Save israelfaria/1876708 to your computer and use it in GitHub Desktop.
Patch wine to work with Subspace Continuum
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index c392d3e..82aab57 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -2770,6 +2770,7 @@ HANDLE WINAPI OpenProcess( DWORD access, BOOL inherit, DWORD id )
OBJECT_ATTRIBUTES attr;
CLIENT_ID cid;
+ if (access & PROCESS_VM_WRITE) return NULL;
cid.UniqueProcess = ULongToHandle(id);
cid.UniqueThread = 0; /* FIXME ? */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment