mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 12:04:51 +00:00
[COMDLG32_WINETEST] Sync with Wine Staging 3.9. CORE-14656
This commit is contained in:
parent
f68b0c5100
commit
234f89c07b
1 changed files with 4 additions and 8 deletions
|
@ -943,29 +943,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)
|
||||
|
@ -1032,8 +1030,6 @@ static UINT_PTR WINAPI test_extension_wndproc(HWND dlg, UINT msg, WPARAM wParam,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
|
||||
|
||||
static void test_extension_helper(OPENFILENAMEA* ofn, const char *filter,
|
||||
const char *expected_filename)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue