Author: tfaber
Date: Thu Feb 26 09:25:58 2015
New Revision: 66466
URL: http://svn.reactos.org/svn/reactos?rev=66466&view=rev
Log:
[USER32_WINETEST]
- Apply a different hack to make Jim happy.
- If you revert any of this and your changes break tests on Windows, I will revert your revert.
Modified:
trunk/rostests/winetests/user32/msg.c
Modified: trunk/rostests/winetests/user32/msg.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/user32/msg.c?re…
==============================================================================
--- trunk/rostests/winetests/user32/msg.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/user32/msg.c [iso-8859-1] Thu Feb 26 09:25:58 2015
@@ -14728,12 +14728,21 @@
START_TEST(msg_focus)
{
init_tests();
+
test_SetFocus();
+
+ /* HACK: For some reason the tests fail on Windows if run consecutively.
+ * Putting these in between helps, and is essentially what happens in the
+ * "normal" msg test. */
+ keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
+ flush_events();
+
test_SetActiveWindow();
- /* HACK: For some reason test_SetForegroundWindow fails on Windows unless
- * we do this */
+ /* HACK */
keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
+ flush_events();
+
/* keep it the last test, under Windows it tends to break the tests
* which rely on active/foreground windows being correct.
*/
Author: jimtabor
Date: Thu Feb 26 08:38:00 2015
New Revision: 66464
URL: http://svn.reactos.org/svn/reactos?rev=66464&view=rev
Log:
[User32_WINETEST]
- Move test_SetFocus first as it is done originally. Refer to read past wine CVS logs for the reason.
Modified:
trunk/rostests/winetests/user32/msg.c
Modified: trunk/rostests/winetests/user32/msg.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/user32/msg.c?re…
==============================================================================
--- trunk/rostests/winetests/user32/msg.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/user32/msg.c [iso-8859-1] Thu Feb 26 08:38:00 2015
@@ -14717,8 +14717,8 @@
START_TEST(msg_focus)
{
init_tests();
+ test_SetFocus();
test_SetActiveWindow();
- test_SetFocus();
/* HACK: For some reason test_SetForegroundWindow fails on Windows unless
* we do this */
Author: tfaber
Date: Thu Feb 26 08:04:03 2015
New Revision: 66463
URL: http://svn.reactos.org/svn/reactos?rev=66463&view=rev
Log:
[NTOS:CM]
- Addendum to r66462: don't forget to check buffer length
CORE-9267
Modified:
trunk/reactos/ntoskrnl/config/cmparse.c
Modified: trunk/reactos/ntoskrnl/config/cmparse.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmparse.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmparse.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/cmparse.c [iso-8859-1] Thu Feb 26 08:04:03 2015
@@ -24,6 +24,8 @@
{
BOOLEAN NameValid = TRUE;
+ NT_ASSERT(RemainingName->Length % sizeof(WCHAR) == 0);
+
/* Check if there's nothing left in the name */
if (!(RemainingName->Buffer) ||
(!RemainingName->Length) ||
@@ -37,7 +39,8 @@
}
/* Check if we have a path separator */
- while (*RemainingName->Buffer == OBJ_NAME_PATH_SEPARATOR)
+ while ((RemainingName->Length) &&
+ (*RemainingName->Buffer == OBJ_NAME_PATH_SEPARATOR))
{
/* Skip it */
RemainingName->Buffer++;
@@ -47,15 +50,9 @@
/* Start loop at where the current buffer is */
NextName->Buffer = RemainingName->Buffer;
- while (TRUE)
- {
- /* Break out if we ran out or hit a path separator */
- if (!(RemainingName->Length) ||
- (*RemainingName->Buffer == OBJ_NAME_PATH_SEPARATOR))
- {
- break;
- }
-
+ while ((RemainingName->Length) &&
+ (*RemainingName->Buffer != OBJ_NAME_PATH_SEPARATOR))
+ {
/* Move to the next character */
RemainingName->Buffer++;
RemainingName->Length -= sizeof(WCHAR);