Nikolay Sivov : comdlg32/tests: Remove a macro.

Alexandre Julliard julliard at winehq.org
Fri Mar 16 13:53:08 CDT 2018


Module: wine
Branch: master
Commit: 284bfc677b127a0b72f9963acac69b1c5f7209c3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=284bfc677b127a0b72f9963acac69b1c5f7209c3

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Mar 16 15:54:52 2018 +0300

comdlg32/tests: Remove a macro.

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

---

 dlls/comdlg32/tests/filedlg.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/dlls/comdlg32/tests/filedlg.c b/dlls/comdlg32/tests/filedlg.c
index ff973a7..fd78a64 100644
--- a/dlls/comdlg32/tests/filedlg.c
+++ b/dlls/comdlg32/tests/filedlg.c
@@ -939,29 +939,27 @@ static void test_resizable2(void)
     ofn.hInstance = GetModuleHandleA(NULL);
     ofn.lpTemplateName = "template1";
     ofn.Flags = OFN_EXPLORER;
-#define ISSIZABLE TRUE
     ret = GetOpenFileNameA(&ofn);
-    ok( ret == ISSIZABLE, "File Dialog should have been sizable\n");
+    ok( ret == TRUE, "File Dialog should have been sizable\n");
     ret = CommDlgExtendedError();
     ok(!ret, "CommDlgExtendedError returned %#x\n", ret);
     ofn.Flags = OFN_EXPLORER | OFN_ENABLETEMPLATE;
     ret = GetOpenFileNameA(&ofn);
-    ok( ret != ISSIZABLE, "File Dialog should NOT have been sizable\n");
+    ok( !ret, "File Dialog should NOT have been sizable\n");
     ret = CommDlgExtendedError();
     ok(!ret, "CommDlgExtendedError returned %#x\n", ret);
     ofn.Flags = OFN_EXPLORER | OFN_ENABLETEMPLATEHANDLE;
     ofn.hInstance = LoadResource( GetModuleHandleA(NULL), FindResourceA( GetModuleHandleA(NULL), "template1", (LPSTR)RT_DIALOG));
     ofn.lpTemplateName = NULL;
     ret = GetOpenFileNameA(&ofn);
-    ok( ret != ISSIZABLE, "File Dialog should NOT have been sizable\n");
+    ok( !ret, "File Dialog should NOT have been sizable\n");
     ret = CommDlgExtendedError();
     ok(!ret, "CommDlgExtendedError returned %#x\n", ret);
     ofn.Flags = OFN_EXPLORER | OFN_ENABLEHOOK;
     ret = GetOpenFileNameA(&ofn);
-    ok( ret != ISSIZABLE, "File Dialog should NOT have been sizable\n");
+    ok( !ret, "File Dialog should NOT have been sizable\n");
     ret = CommDlgExtendedError();
     ok(!ret, "CommDlgExtendedError returned %#x\n", ret);
-#undef ISSIZABLE
 }
 
 static void test_mru(void)




More information about the wine-cvs mailing list