From c9e146259dd08694f92e73568cc3c5145b7c5e2f Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Fri, 13 Mar 2015 18:17:16 +0100 Subject: [PATCH] ntdll-ThreadTime: Do not change the mode of files (thanks Qian Hong). --- ...rect-values-in-GetThreadTimes-for-al.patch | 25 ++++++------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/patches/ntdll-ThreadTime/0001-ntdll-Return-correct-values-in-GetThreadTimes-for-al.patch b/patches/ntdll-ThreadTime/0001-ntdll-Return-correct-values-in-GetThreadTimes-for-al.patch index 0c321a90..a7a3178b 100644 --- a/patches/ntdll-ThreadTime/0001-ntdll-Return-correct-values-in-GetThreadTimes-for-al.patch +++ b/patches/ntdll-ThreadTime/0001-ntdll-Return-correct-values-in-GetThreadTimes-for-al.patch @@ -1,4 +1,4 @@ -From 4d5874dbe7056a4a1a86e13a4f92096e5d77f18f Mon Sep 17 00:00:00 2001 +From c23803e1776618f98732081302d225f0e5b54cb3 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Fri, 7 Nov 2014 03:26:18 +0100 Subject: ntdll: Return correct values in GetThreadTimes() for all threads. @@ -9,14 +9,9 @@ Based on a patch by Ray Hinchliffe . server/protocol.def | 11 +++++++ server/thread.c | 16 ++++++++++ 3 files changed, 93 insertions(+), 20 deletions(-) - mode change 100644 => 100755 dlls/ntdll/thread.c - mode change 100644 => 100755 server/protocol.def - mode change 100644 => 100755 server/thread.c diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c -old mode 100644 -new mode 100755 -index c8461b0..44b1a9c +index 3696c8e..eab1a53 100644 --- a/dlls/ntdll/thread.c +++ b/dlls/ntdll/thread.c @@ -23,6 +23,8 @@ @@ -28,7 +23,7 @@ index c8461b0..44b1a9c #include #ifdef HAVE_SYS_MMAN_H #include -@@ -948,47 +950,91 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class, +@@ -962,47 +964,91 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class, case ThreadTimes: { KERNEL_USER_TIMES kusrt; @@ -141,12 +136,10 @@ index c8461b0..44b1a9c if (ret_len) *ret_len = min( length, sizeof(kusrt) ); } diff --git a/server/protocol.def b/server/protocol.def -old mode 100644 -new mode 100755 -index 4854e3d..6f5575a +index 2cd8272..6fd0e45 100644 --- a/server/protocol.def +++ b/server/protocol.def -@@ -789,6 +789,17 @@ struct rawinput_device +@@ -790,6 +790,17 @@ struct rawinput_device #define SET_PROCESS_INFO_AFFINITY 0x02 @@ -165,12 +158,10 @@ index 4854e3d..6f5575a @REQ(get_thread_info) obj_handle_t handle; /* thread handle */ diff --git a/server/thread.c b/server/thread.c -old mode 100644 -new mode 100755 -index 50d6940..e670ab5 +index 906b79d..8877e40 100644 --- a/server/thread.c +++ b/server/thread.c -@@ -1346,6 +1346,22 @@ DECL_HANDLER(open_thread) +@@ -1354,6 +1354,22 @@ DECL_HANDLER(open_thread) } } @@ -194,5 +185,5 @@ index 50d6940..e670ab5 DECL_HANDLER(get_thread_info) { -- -2.1.3 +2.3.2