comdlg32/tests: Remove a macro.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2f51d691f4
commit
284bfc677b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue