Nikolay Sivov : user32/tests: Fix indentation warnings on GCC 6.

Alexandre Julliard julliard at winehq.org
Wed Aug 10 11:05:56 CDT 2016


Module: wine
Branch: master
Commit: 6c8887b830358dc109ea7781b2bb182c8104ce47
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6c8887b830358dc109ea7781b2bb182c8104ce47

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Aug  9 20:06:22 2016 +0300

user32/tests: Fix indentation warnings on GCC 6.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/input.c | 6 +++---
 dlls/user32/tests/menu.c  | 6 ++++--
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c
index 0d7c6d6..1813367 100644
--- a/dlls/user32/tests/input.c
+++ b/dlls/user32/tests/input.c
@@ -184,7 +184,7 @@ static int KbdMessage( KEV kev, WPARAM *pwParam, LPARAM *plParam )
             if(  TrackSysKey == VK_MENU || /* <ALT>-down/<ALT>-up sequence */
                     (VKey != VK_MENU)) /* <ALT>-down...<something else>-up */
                 message = WM_SYSKEYUP;
-                TrackSysKey = 0;
+            TrackSysKey = 0;
         }
         InputKeyStateTable[VKey] &= ~0x80;
         flags |= KF_REPEAT | KF_UP;
@@ -1767,8 +1767,8 @@ static void test_keyboard_layout_name(void)
     BOOL ret;
     char klid[KL_NAMELENGTH];
 
-if (0) /* crashes on native system */
-    ret = GetKeyboardLayoutNameA(NULL);
+    if (0) /* crashes on native system */
+        ret = GetKeyboardLayoutNameA(NULL);
 
     SetLastError(0xdeadbeef);
     ret = GetKeyboardLayoutNameW(NULL);
diff --git a/dlls/user32/tests/menu.c b/dlls/user32/tests/menu.c
index ae7b957..a42bc1c 100644
--- a/dlls/user32/tests/menu.c
+++ b/dlls/user32/tests/menu.c
@@ -3972,13 +3972,15 @@ static void test_AppendMenu(void)
     mii.wID = 206;
     ret = InsertMenuItemA(hmenu, 0, TRUE, &mii);
     ok(ret, "InsertMenuItem failed\n");
-if (0) /* FIXME: uncomment once Wine is fixed */
+if (0) /* FIXME: uncomment once Wine is fixed */ {
     check_menu_items(hmenu, 206, MF_SEPARATOR, MFS_GRAYED);
+}
     mii.wID = 207;
     ret = SetMenuItemInfoA(hmenu, 0, TRUE, &mii);
     ok(ret, "SetMenuItemInfo failed\n");
-if (0) /* FIXME: uncomment once Wine is fixed */
+if (0) /* FIXME: uncomment once Wine is fixed */ {
     check_menu_items(hmenu, 207, MF_SEPARATOR, MFS_GRAYED);
+}
     DestroyMenu(hmenu);
 
     hbmp = CreateBitmap(1, 1, 1, 1, NULL);




More information about the wine-cvs mailing list