Module: wine Branch: master Commit: 5e5adcffb5e665d3d1562fd8598c5e1ae016054f URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e5adcffb5e665d3d1562fd859...
Author: Sebastian Lackner sebastian@fds-team.de Date: Mon Mar 23 14:12:38 2015 +0100
user32: Use C_ASSERT to ensure user_thread_info fits into TEB->Win32ClientInfo.
---
dlls/user32/user_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/user_private.h b/dlls/user32/user_private.h index adf3f7d..919540d 100644 --- a/dlls/user32/user_private.h +++ b/dlls/user32/user_private.h @@ -189,10 +189,10 @@ struct user_thread_info HWND top_window; /* Desktop window */ HWND msg_window; /* HWND_MESSAGE parent window */ RAWINPUT *rawinput; - - ULONG pad[6]; /* Available for more data */ };
+C_ASSERT( sizeof(struct user_thread_info) <= sizeof(((TEB *)0)->Win32ClientInfo) ); + struct hook_extra_info { HHOOK handle;