Author: tkreuzer
Date: Thu Jan 11 02:48:02 2007
New Revision: 25422
URL: http://svn.reactos.org/svn/reactos?rev=25422&view=rev
Log:
Don't remove keyboard focus from any other window than the one that was disabled.
Modified:
trunk/reactos/dll/win32/user32/windows/input.c
Modified: trunk/reactos/dll/win32/user32/windows/input.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/i…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/input.c (original)
+++ trunk/reactos/dll/win32/user32/windows/input.c Thu Jan 11 02:48:02 2007
@@ -347,9 +347,12 @@
}
else
{
- /* Remove keyboard focus from that window */
- SetFocus(NULL);
Style |= WS_DISABLED;
+ /* Remove keyboard focus from that window if it had focus */
+ if (hWnd == GetFocus())
+ {
+ SetFocus(NULL);
+ }
}
NtUserSetWindowLong(hWnd, GWL_STYLE, Style, FALSE);
Author: hpoussin
Date: Wed Jan 10 23:02:41 2007
New Revision: 25419
URL: http://svn.reactos.org/svn/reactos?rev=25419&view=rev
Log:
Don't rely on stdio.h to define EOF, as native stdio.h can conflict with ROS headers
Modified:
trunk/reactos/lib/string/sscanf.c
Modified: trunk/reactos/lib/string/sscanf.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/string/sscanf.c?rev=25…
==============================================================================
--- trunk/reactos/lib/string/sscanf.c (original)
+++ trunk/reactos/lib/string/sscanf.c Wed Jan 10 23:02:41 2007
@@ -5,7 +5,8 @@
#include <ndk/rtlfuncs.h>
#include <stdlib.h>
#include <stdarg.h>
-#include <stdio.h>
+
+#define EOF (-1)
/* helper function for *scanf. Returns the value of character c in the
* given base, or -1 if the given character is not a digit of the base.
Author: hpoussin
Date: Wed Jan 10 22:57:52 2007
New Revision: 25418
URL: http://svn.reactos.org/svn/reactos?rev=25418&view=rev
Log:
Move up wpp include, as it is needed by widl
Modified:
trunk/reactos/tools/tools.mak
Modified: trunk/reactos/tools/tools.mak
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/tools.mak?rev=25418&…
==============================================================================
--- trunk/reactos/tools/tools.mak (original)
+++ trunk/reactos/tools/tools.mak Wed Jan 10 22:57:52 2007
@@ -56,8 +56,8 @@
include tools/rsym.mak
include tools/sysreg/sysreg.mak
include tools/unicode/unicode.mak
+include tools/wpp/wpp.mak
include tools/widl/widl.mak
include tools/winebuild/winebuild.mak
include tools/wmc/wmc.mak
-include tools/wpp/wpp.mak
include tools/wrc/wrc.mak