Author: cwittich
Date: Sat Dec 8 21:58:42 2007
New Revision: 31090
URL:
http://svn.reactos.org/svn/reactos?rev=31090&view=rev
Log:
Dmitry Timoshkov : kernel32: Fix the size of ThreadAffinityMask to match PSDK. <dmitry
at codeweavers.com>
Dmitry Timoshkov : winternl.h: Make the fields of the PROCESS_BASIC_INFORMATION structure
use same type width as a PSDK one .
Modified:
trunk/reactos/dll/win32/kernel32/thread/thread.c
trunk/reactos/include/psdk/winbase.h
trunk/reactos/include/psdk/winternl.h
Modified: trunk/reactos/dll/win32/kernel32/thread/thread.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/thread/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/thread/thread.c (original)
+++ trunk/reactos/dll/win32/kernel32/thread/thread.c Sat Dec 8 21:58:42 2007
@@ -489,10 +489,10 @@
/*
* @implemented
*/
-DWORD
+DWORD_PTR
WINAPI
SetThreadAffinityMask(HANDLE hThread,
- DWORD dwThreadAffinityMask)
+ DWORD_PTR dwThreadAffinityMask)
{
THREAD_BASIC_INFORMATION ThreadBasic;
KAFFINITY AffinityMask;
Modified: trunk/reactos/include/psdk/winbase.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winbase.h?rev…
==============================================================================
--- trunk/reactos/include/psdk/winbase.h (original)
+++ trunk/reactos/include/psdk/winbase.h Sat Dec 8 21:58:42 2007
@@ -1998,7 +1998,7 @@
BOOL WINAPI SetSystemTimeAdjustment(DWORD,BOOL);
DWORD WINAPI SetTapeParameters(HANDLE,DWORD,PVOID);
DWORD WINAPI SetTapePosition(HANDLE,DWORD,DWORD,DWORD,DWORD,BOOL);
-DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
+DWORD_PTR WINAPI SetThreadAffinityMask(HANDLE,DWORD_PTR);
BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT*);
DWORD WINAPI SetThreadIdealProcessor(HANDLE,DWORD);
BOOL WINAPI SetThreadPriority(HANDLE,int);
Modified: trunk/reactos/include/psdk/winternl.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winternl.h?re…
==============================================================================
--- trunk/reactos/include/psdk/winternl.h (original)
+++ trunk/reactos/include/psdk/winternl.h Sat Dec 8 21:58:42 2007
@@ -708,7 +708,7 @@
NTSTATUS ExitStatus;
PVOID TebBaseAddress;
CLIENT_ID ClientId;
- ULONG AffinityMask;
+ ULONG_PTR AffinityMask;
LONG Priority;
LONG BasePriority;
} THREAD_BASIC_INFORMATION, *PTHREAD_BASIC_INFORMATION;
@@ -914,12 +914,12 @@
typedef struct _PROCESS_BASIC_INFORMATION {
#ifdef __WINESRC__
- DWORD ExitStatus;
- DWORD PebBaseAddress;
- DWORD AffinityMask;
- DWORD BasePriority;
- ULONG UniqueProcessId;
- ULONG InheritedFromUniqueProcessId;
+ DWORD_PTR ExitStatus;
+ PPEB PebBaseAddress;
+ DWORD_PTR AffinityMask;
+ DWORD_PTR BasePriority;
+ ULONG_PTR UniqueProcessId;
+ ULONG_PTR InheritedFromUniqueProcessId;
#else
PVOID Reserved1;
PPEB PebBaseAddress;