ntdll-ThreadTime: Do not change the mode of files (thanks Qian Hong).

This commit is contained in:
Sebastian Lackner 2015-03-13 18:17:16 +01:00
parent 3c7f5898c0
commit c9e146259d

View File

@ -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 <sebastian@fds-team.de>
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 <ray@pobox.co.uk>.
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 <sys/types.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
@@ -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