Author: jimtabor
Date: Fri Jul 11 20:00:58 2008
New Revision: 34433
URL:
http://svn.reactos.org/svn/reactos?rev=34433&view=rev
Log:
- Fix problem with share pointer. See bug 3503. It seems to be a problem with ntdll and
msvcrt.
Modified:
trunk/reactos/dll/win32/user32/windows/message.c
Modified: trunk/reactos/dll/win32/user32/windows/message.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/m…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/message.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/message.c [iso-8859-1] Fri Jul 11 20:00:58
2008
@@ -1081,13 +1081,13 @@
STDCALL
InSendMessage(VOID)
{
- PCLIENTTHREADINFO pcti = ((PW32CLIENTINFO)GetWin32ClientInfo())->pClientThreadInfo;
+ PCLIENTTHREADINFO pcti =
SharedPtrToUser(((PW32CLIENTINFO)GetWin32ClientInfo())->pClientThreadInfo);
if ( pcti )
return (pcti->CTI_flags & CTI_INSENDMESSAGE);
else
- /* return(NtUserGetThreadState(THREADSTATE_INSENDMESSAGE) != ISMEX_NOSEND); */
return FALSE;
+/* return(NtUserGetThreadState(THREADSTATE_INSENDMESSAGE) != ISMEX_NOSEND);*/
}
@@ -1099,7 +1099,7 @@
InSendMessageEx(
LPVOID lpReserved)
{
- PCLIENTTHREADINFO pcti = ((PW32CLIENTINFO)GetWin32ClientInfo())->pClientThreadInfo;
+ PCLIENTTHREADINFO pcti =
SharedPtrToUser(((PW32CLIENTINFO)GetWin32ClientInfo())->pClientThreadInfo);
if (pcti && !(pcti->CTI_flags & CTI_INSENDMESSAGE)) return
ISMEX_NOSEND;
else
@@ -2312,7 +2312,7 @@
BOOL WINAPI IsInsideMessagePumpHook()
{
- PCLIENTTHREADINFO pcti =
((PW32CLIENTINFO)GetWin32ClientInfo())->pClientThreadInfo;
+ PCLIENTTHREADINFO pcti =
SharedPtrToUser(((PW32CLIENTINFO)GetWin32ClientInfo())->pClientThreadInfo);
return (gfMessagePumpHook && pcti && (pcti->dwcPumpHook > 0));
}