Skip to content

Instantly share code, notes, and snippets.

@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 +
@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: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: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: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:7e06399cd021b3880698
Last active August 29, 2015 14:14
wined3d: Normalize the bitdepth scale rather than the constant.
From bd0e4c89c74dd5b791e7e382321b69bfa5b57b0a Mon Sep 17 00:00:00 2001
From: "Erich E. Hoover" <erich.e.hoover@wine-staging.com>
Date: Mon, 26 Jan 2015 19:31:24 -0700
Subject: wined3d: Normalize the bitdepth scale rather than the constant.
---
dlls/wined3d/state.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
From 6901671908f0f95b6e262943de7c8fb8bcdbdca1 Mon Sep 17 00:00:00 2001
From: "Erich E. Hoover" <erich.e.hoover@wine-staging.com>
Date: Tue, 27 Jan 2015 15:02:21 -0700
Subject: lstat hack
---
dlls/ntdll/file.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
@compholio
compholio / gist:f54120f4b304a730c98f
Created February 3, 2015 09:15
Grim Remastered Font Hack
diff --git a/engines/grim/lua_v1.cpp b/engines/grim/lua_v1.cpp
index 01f302e..a507a0b 100644
--- a/engines/grim/lua_v1.cpp
+++ b/engines/grim/lua_v1.cpp
@@ -696,6 +696,9 @@ void Lua_V1::LockFont() {
lua_Object param1 = lua_getparam(1);
if (lua_isstring(param1)) {
const char *fontName = lua_getstring(param1);
+if(!strcmp(fontName, "koloss52.laf") || !strcmp(fontName, "koloss69.laf") || !strcmp(fontName, "koloss100.laf") || !strcmp(fontName, "meredith38.laf") || !strcmp(fontName, "meredith46.laf")) {
+fontName = "treb13bs.laf";
@compholio
compholio / gist:6c7274314ae4cade3cb7
Created March 2, 2015 18:01
strmbase: Fix MediaSeekingPassThru_GetPositions return when the pins are unconnected.
From 7f801adb195ca665ee1caa3453bc76326dc759cd Mon Sep 17 00:00:00 2001
From: "Erich E. Hoover" <erich.e.hoover@wine-staging.com>
Date: Mon, 2 Mar 2015 11:01:22 -0700
Subject: strmbase: Fix MediaSeekingPassThru_GetPositions return when the pins are
unconnected.
---
dlls/strmbase/pospass.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
@compholio
compholio / gist:c26ad151f1e3b5990dfb
Created March 3, 2015 18:50
winex11: Display a helpful warning when Dynamic TwinView is enabled.
From 04bd31c1830e1b9c1b5ab3afebd44cdd3807101d Mon Sep 17 00:00:00 2001
From: "Erich E. Hoover" <erich.e.hoover@wine-staging.com>
Date: Mon, 2 Mar 2015 23:18:10 -0700
Subject: winex11: Display a helpful warning when Dynamic TwinView is enabled.
---
configure.ac | 20 +++++++++++++++++++-
dlls/winex11.drv/xrandr.c | 22 ++++++++++++++++++++++
2 files changed, 41 insertions(+), 1 deletion(-)