Author: mjmartin
Date: Sat Oct 25 11:08:59 2008
New Revision: 36950
URL: http://svn.reactos.org/svn/reactos?rev=36950&view=rev
Log:
- Do not send the WM_MOUSEACTIVATE message for a window that has no parent.
- Fixes visual basic application crashes when clicking on form. See bug #3111 for more details.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/message.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/message.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] Sat Oct 25 11:08:59 2008
@@ -597,7 +597,14 @@
}
Parent = IntGetParent(MsgWindow);//fixme: deref retval?
- /* fixme: abort if no parent ? */
+
+ /* If there is no parent, do not send the WM_MOUSEACTIVATE message. Fixes Bug #3111 */
+ if (!Parent)
+ {
+ co_IntMouseActivateWindow(MsgWindow);
+ return FALSE;
+ }
+
Result = co_IntSendMessage(MsgWindow->hSelf,
WM_MOUSEACTIVATE,
(WPARAM) (Parent ? Parent->hSelf : NULL),
Author: cfinck
Date: Sat Oct 25 09:49:51 2008
New Revision: 36944
URL: http://svn.reactos.org/svn/reactos?rev=36944&view=rev
Log:
Fix build broken in r36927
The #ifdef's here are defined by the host, not by the target.
Therefore we can't check with #if defined(__x86_64__) whether we build for 64-bit. Probably a _TARGET_PE64 solution like we have for rsym is needed here to fix this properly also for the AMD64 port.
Modified:
trunk/reactos/tools/winebuild/main.c
Modified: trunk/reactos/tools/winebuild/main.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/winebuild/main.c?rev…
==============================================================================
--- trunk/reactos/tools/winebuild/main.c [iso-8859-1] (original)
+++ trunk/reactos/tools/winebuild/main.c [iso-8859-1] Sat Oct 25 09:49:51 2008
@@ -48,7 +48,7 @@
int save_temps = 0;
int link_ext_symbols = 0;
-#if defined(__i386__)
+#if defined(__i386__) || defined(__x86_64__)
enum target_cpu target_cpu = CPU_x86;
#elif defined(__x86_64__)
enum target_cpu target_cpu = CPU_x86_64;