Skip to content

Instantly share code, notes, and snippets.

@compholio
compholio / gist:2b35188e4655ab683812
Created January 22, 2015 20:00
ntoskrnl.exe: add KeWaitForMultipleObjects stub
From 0fa1a31ae872769dc2ccf069184d36117b767435 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish@gmail.com>
Date: Wed, 24 Dec 2014 15:35:23 -0600
Subject: ntoskrnl.exe: add KeWaitForMultipleObjects stub
---
dlls/ntoskrnl.exe/ntoskrnl.c | 13 +++++++++++++
dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +-
include/ddk/ntddk.h | 17 +++++++++++++++++
3 files changed, 31 insertions(+), 1 deletion(-)
@compholio
compholio / gist:1cf176e04ef50aef1cec
Created January 20, 2015 23:42
server: FILE_ATTRIBUTE_READONLY should override the security descriptor specified mode.
From a475d1dc8930c6e18ea1bd7af61a1528fdf2f4e9 Mon Sep 17 00:00:00 2001
From: "Erich E. Hoover" <erich.e.hoover@wine-staging.com>
Date: Tue, 20 Jan 2015 16:41:40 -0700
Subject: server: FILE_ATTRIBUTE_READONLY should override the security
descriptor specified mode.
---
server/file.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
@compholio
compholio / gist:c2b4e91a5ce1382817af
Last active August 29, 2015 14:13
shell32: Quote program name in ShellExecuteEx if it contains spaces.
From bed6c718ccc09100c20527dde2801c94f7776108 Mon Sep 17 00:00:00 2001
From: Stefan Leichter <Stefan.Leichter@camline.com>
Date: Mon, 5 Jan 2015 00:18:14 -0700
Subject: shell32: Quote program name in ShellExecuteEx if it contains spaces.
---
dlls/shell32/shlexec.c | 33 +++++++++++++++++++++++----------
dlls/shell32/tests/shlexec.c | 32 ++++++++++++++++++++++++++++++--
2 files changed, 53 insertions(+), 12 deletions(-)
@compholio
compholio / gist:11777023e0f88ee73a06
Created January 14, 2015 04:25
Horrible hack for NtQueryInformationJobObject
diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c
index 0dd2b34..d041957 100644
--- a/dlls/ntdll/sync.c
+++ b/dlls/ntdll/sync.c
@@ -639,7 +639,9 @@ NTSTATUS WINAPI NtQueryInformationJobObject( HANDLE handle, JOBOBJECTINFOCLASS c
ULONG len, PULONG ret_len )
{
FIXME( "stub: %p %u %p %u %p\n", handle, class, info, len, ret_len );
- return STATUS_NOT_IMPLEMENTED;
+ memset(info, 0xFF, len);
@compholio
compholio / gist:8dd4bbcc4228fd57b445
Created January 14, 2015 04:24
Add support for job objects
From 16e40017cbb4580bd0c0c1954c08adca64148258 Mon Sep 17 00:00:00 2001
From: Andrew Cook <ariscop@gmail.com>
Date: Tue, 13 Jan 2015 20:58:11 -0700
Subject: ntdll: Implement job objects.
---
dlls/kernel32/tests/process.c | 172 ++++++++++++++++++++++-
dlls/ntdll/sync.c | 127 +++++++++++++++--
server/process.c | 314 ++++++++++++++++++++++++++++++++++++++++++
server/process.h | 3 +