Author: jimtabor
Date: Sat Jul 12 18:49:51 2008
New Revision: 34441
URL:
http://svn.reactos.org/svn/reactos?rev=34441&view=rev
Log:
This did not fix bug 3503 but only hid the problem. Added note about Firefox, polls
IsInsideMessagePumpHook when Min/Max.
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] Sat Jul 12 18:49:51
2008
@@ -1081,11 +1081,15 @@
STDCALL
InSendMessage(VOID)
{
- PCLIENTTHREADINFO pcti =
SharedPtrToUser(((PW32CLIENTINFO)GetWin32ClientInfo())->pClientThreadInfo);
-
+ PCLIENTTHREADINFO pcti = ((PW32CLIENTINFO)GetWin32ClientInfo())->pClientThreadInfo;
+// FIXME("ISM %x\n",pcti);
if ( pcti )
- return (pcti->CTI_flags & CTI_INSENDMESSAGE);
- else
+ {
+ if (pcti->CTI_flags & CTI_INSENDMESSAGE)
+ {
+ return TRUE;
+ }
+ }
return FALSE;
/* return(NtUserGetThreadState(THREADSTATE_INSENDMESSAGE) != ISMEX_NOSEND);*/
}
@@ -1099,8 +1103,8 @@
InSendMessageEx(
LPVOID lpReserved)
{
- PCLIENTTHREADINFO pcti =
SharedPtrToUser(((PW32CLIENTINFO)GetWin32ClientInfo())->pClientThreadInfo);
-
+ PCLIENTTHREADINFO pcti = ((PW32CLIENTINFO)GetWin32ClientInfo())->pClientThreadInfo;
+// FIXME("ISMEX %x\n",pcti);
if (pcti && !(pcti->CTI_flags & CTI_INSENDMESSAGE)) return
ISMEX_NOSEND;
else
/* return NtUserGetThreadState(THREADSTATE_INSENDMESSAGE); */
@@ -2311,8 +2315,9 @@
DWORD gfMessagePumpHook = 0;
BOOL WINAPI IsInsideMessagePumpHook()
-{
+{ // Fixme: Need to fully implement this! FF uses this and polls it when Min/Max
PCLIENTTHREADINFO pcti =
((PW32CLIENTINFO)GetWin32ClientInfo())->pClientThreadInfo;
+// FIXME("IIMPH %x\n",pcti);
return (gfMessagePumpHook && pcti && (pcti->dwcPumpHook > 0));
}