[2/5] winternl.h: Make the fields of the PROCESS_BASIC_INFORMATION structure use same type width as a PSDK one

Dmitry Timoshkov dmitry at codeweavers.com
Wed May 23 02:35:52 CDT 2007


Hello,

Changelog:
    winternl.h: Make the fields of the PROCESS_BASIC_INFORMATION
    structure use same type width as a PSDK one.

---
 dlls/ntdll/process.c |    2 +-
 include/winternl.h   |   10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/ntdll/process.c b/dlls/ntdll/process.c
index a03b23e..39ca74a 100644
--- a/dlls/ntdll/process.c
+++ b/dlls/ntdll/process.c
@@ -144,7 +144,7 @@ NTSTATUS WINAPI NtQueryInformationProcess(
                         if ((ret = wine_server_call( req )) == STATUS_SUCCESS)
                         {
                             pbi.ExitStatus = reply->exit_code;
-                            pbi.PebBaseAddress = (DWORD)reply->peb;
+                            pbi.PebBaseAddress = reply->peb;
                             pbi.AffinityMask = reply->affinity;
                             pbi.BasePriority = reply->priority;
                             pbi.UniqueProcessId = reply->pid;
diff --git a/include/winternl.h b/include/winternl.h
index 06885b3..5594348 100644
--- a/include/winternl.h
+++ b/include/winternl.h
@@ -958,12 +958,12 @@ typedef struct _OBJECT_BASIC_INFORMATION {
 
 typedef struct _PROCESS_BASIC_INFORMATION {
 #ifdef __WINESRC__
-    DWORD ExitStatus;
-    DWORD PebBaseAddress;
+    DWORD_PTR ExitStatus;
+    PPEB PebBaseAddress;
     DWORD_PTR AffinityMask;
-    DWORD BasePriority;
-    ULONG UniqueProcessId;
-    ULONG InheritedFromUniqueProcessId;
+    DWORD_PTR BasePriority;
+    ULONG_PTR UniqueProcessId;
+    ULONG_PTR InheritedFromUniqueProcessId;
 #else
     PVOID Reserved1;
     PPEB PebBaseAddress;
-- 
1.5.1.6






More information about the wine-patches mailing list