https://git.reactos.org/?p=reactos.git;a=commitdiff;h=facc2837a10f9ea33e211…
commit facc2837a10f9ea33e21135859859ea57d054a5b
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Aug 30 09:35:27 2022 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Tue Aug 30 09:35:27 2022 +0900
[NTUSER] Move TL structure definition to ntuser.h (#4644)
- Move struct _TL and TL definitions from win32.h to ntuser.h.
- Modify the type of TL.pfnFree as newly-defined TL_FN_FREE function pointer.
CORE-11700
---
win32ss/user/ntuser/ntuser.h | 9 +++++++++
win32ss/user/ntuser/win32.h | 9 ++-------
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/win32ss/user/ntuser/ntuser.h b/win32ss/user/ntuser/ntuser.h
index 090a7973690..a72571dc26f 100644
--- a/win32ss/user/ntuser/ntuser.h
+++ b/win32ss/user/ntuser/ntuser.h
@@ -9,6 +9,15 @@
#define UserEnterCo UserEnterExclusive
#define UserLeaveCo UserLeave
+typedef VOID (*TL_FN_FREE)(PVOID);
+
+typedef struct _TL
+{
+ struct _TL* next;
+ PVOID pobj;
+ TL_FN_FREE pfnFree;
+} TL, *PTL;
+
extern PSERVERINFO gpsi;
extern PTHREADINFO gptiCurrent;
extern PPROCESSINFO gppiList;
diff --git a/win32ss/user/ntuser/win32.h b/win32ss/user/ntuser/win32.h
index dd30cf23fc8..9514b48c3ca 100644
--- a/win32ss/user/ntuser/win32.h
+++ b/win32ss/user/ntuser/win32.h
@@ -53,13 +53,8 @@ extern HANDLE hModuleWin; // This Win32k Instance.
extern struct _CLS *SystemClassList;
extern BOOL RegisteredSysClasses;
-// FIXME: Move to ntuser.h
-typedef struct _TL
-{
- struct _TL* next;
- PVOID pobj;
- PVOID pfnFree;
-} TL, *PTL;
+struct _TL;
+typedef struct _TL *PTL;
typedef struct _W32THREAD
{