Qian Hong : ntdll: Correctly document the offset of ntdll_thread_data.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 21 09:57:27 CDT 2015


Module: wine
Branch: master
Commit: 604c4dba80ecf52671d7da9ba40e2d886a9b2c05
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=604c4dba80ecf52671d7da9ba40e2d886a9b2c05

Author: Qian Hong <qhong at codeweavers.com>
Date:   Tue Apr 21 03:11:04 2015 +0800

ntdll: Correctly document the offset of ntdll_thread_data.

This is a follow up of 16ddc624050a9780c16abb0421e093925bc351cf.

---

 dlls/ntdll/ntdll_misc.h | 2 +-
 tools/winebuild/relay.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h
index 674fcbc..cbd19db 100644
--- a/dlls/ntdll/ntdll_misc.h
+++ b/dlls/ntdll/ntdll_misc.h
@@ -214,7 +214,7 @@ struct debug_info
     char  output[1024];  /* current output line */
 };
 
-/* thread private data, stored in NtCurrentTeb()->SystemReserved2 */
+/* thread private data, stored in NtCurrentTeb()->SpareBytes1 */
 struct ntdll_thread_data
 {
 #ifdef __i386__
diff --git a/tools/winebuild/relay.c b/tools/winebuild/relay.c
index cb4b0ca..e9228a0 100644
--- a/tools/winebuild/relay.c
+++ b/tools/winebuild/relay.c
@@ -34,7 +34,7 @@
 #define STACKOFFSET 0xc0  /* FIELD_OFFSET(TEB,WOW32Reserved) */
 
 /* fix this if the ntdll_thread_regs structure is changed */
-#define GS_OFFSET  0x1d8  /* FIELD_OFFSET(TEB,SystemReserved2) + FIELD_OFFSET(ntdll_thread_data,gs) */
+#define GS_OFFSET  0x1d8  /* FIELD_OFFSET(TEB,SpareBytes1) + FIELD_OFFSET(ntdll_thread_data,gs) */
 
 #define DPMI_VIF_OFFSET      (0x1fc + 0) /* FIELD_OFFSET(TEB,GdiTebBatch) + FIELD_OFFSET(WINE_VM86_TEB_INFO,dpmi_vif) */
 #define VM86_PENDING_OFFSET  (0x1fc + 4) /* FIELD_OFFSET(TEB,GdiTebBatch) + FIELD_OFFSET(WINE_VM86_TEB_INFO,vm86_pending) */




More information about the wine-cvs mailing list