comdlg32/tests: Use BOOL type where appropriate.
This commit is contained in:
parent
189ac56e6d
commit
e5d954096b
|
@ -111,7 +111,7 @@ static void test_DialogCancel(void)
|
||||||
"expected CDERR_INITIALIZATION, got %d\n", CommDlgExtendedError());
|
"expected CDERR_INITIALIZATION, got %d\n", CommDlgExtendedError());
|
||||||
|
|
||||||
result = GetOpenFileNameA(&ofn);
|
result = GetOpenFileNameA(&ofn);
|
||||||
ok(0 == result, "expected 0, got %d\n", result);
|
ok(FALSE == result, "expected FALSE, got %d\n", result);
|
||||||
ok(0 == CommDlgExtendedError(), "expected 0, got %d\n",
|
ok(0 == CommDlgExtendedError(), "expected 0, got %d\n",
|
||||||
CommDlgExtendedError());
|
CommDlgExtendedError());
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ static void test_DialogCancel(void)
|
||||||
"expected CDERR_INITIALIZATION, got %d\n", CommDlgExtendedError());
|
"expected CDERR_INITIALIZATION, got %d\n", CommDlgExtendedError());
|
||||||
|
|
||||||
result = GetSaveFileNameA(&ofn);
|
result = GetSaveFileNameA(&ofn);
|
||||||
ok(0 == result, "expected 0, got %d\n", result);
|
ok(FALSE == result, "expected FALSE, got %d\n", result);
|
||||||
ok(0 == CommDlgExtendedError(), "expected 0, got %d\n",
|
ok(0 == CommDlgExtendedError(), "expected 0, got %d\n",
|
||||||
CommDlgExtendedError());
|
CommDlgExtendedError());
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ static void test_DialogCancel(void)
|
||||||
win_skip("GetOpenFileNameW is not implemented\n");
|
win_skip("GetOpenFileNameW is not implemented\n");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ok(0 == result, "expected 0, got %d\n", result);
|
ok(FALSE == result, "expected FALSE, got %d\n", result);
|
||||||
ok(0 == CommDlgExtendedError(), "expected 0, got %d\n", CommDlgExtendedError());
|
ok(0 == CommDlgExtendedError(), "expected 0, got %d\n", CommDlgExtendedError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ static void test_DialogCancel(void)
|
||||||
win_skip("GetSaveFileNameW is not implemented\n");
|
win_skip("GetSaveFileNameW is not implemented\n");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ok(0 == result, "expected 0, got %d\n", result);
|
ok(FALSE == result, "expected FALSE, got %d\n", result);
|
||||||
ok(0 == CommDlgExtendedError(), "expected 0, got %d\n", CommDlgExtendedError());
|
ok(0 == CommDlgExtendedError(), "expected 0, got %d\n", CommDlgExtendedError());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -928,12 +928,12 @@ static void test_getfolderpath(void)
|
||||||
ofn.lpstrInitialDir = szInitialDir;
|
ofn.lpstrInitialDir = szInitialDir;
|
||||||
|
|
||||||
result = GetOpenFileNameA(&ofn);
|
result = GetOpenFileNameA(&ofn);
|
||||||
ok(0 == result, "expected 0, got %d\n", result);
|
ok(FALSE == result, "expected FALSE, got %d\n", result);
|
||||||
ok(0 == CommDlgExtendedError(), "expected 0, got %d\n",
|
ok(0 == CommDlgExtendedError(), "expected 0, got %d\n",
|
||||||
CommDlgExtendedError());
|
CommDlgExtendedError());
|
||||||
|
|
||||||
result = GetSaveFileNameA(&ofn);
|
result = GetSaveFileNameA(&ofn);
|
||||||
ok(0 == result, "expected 0, got %d\n", result);
|
ok(FALSE == result, "expected FALSE, got %d\n", result);
|
||||||
ok(0 == CommDlgExtendedError(), "expected 0, got %d\n",
|
ok(0 == CommDlgExtendedError(), "expected 0, got %d\n",
|
||||||
CommDlgExtendedError());
|
CommDlgExtendedError());
|
||||||
}
|
}
|
||||||
|
@ -956,7 +956,7 @@ static void test_resizable2(void)
|
||||||
ofn.hInstance = GetModuleHandleA(NULL);
|
ofn.hInstance = GetModuleHandleA(NULL);
|
||||||
ofn.lpTemplateName = "template1";
|
ofn.lpTemplateName = "template1";
|
||||||
ofn.Flags = OFN_EXPLORER;
|
ofn.Flags = OFN_EXPLORER;
|
||||||
#define ISSIZABLE 1
|
#define ISSIZABLE TRUE
|
||||||
ret = GetOpenFileNameA(&ofn);
|
ret = GetOpenFileNameA(&ofn);
|
||||||
ok( ret == ISSIZABLE, "File Dialog should have been sizable\n");
|
ok( ret == ISSIZABLE, "File Dialog should have been sizable\n");
|
||||||
ret = CommDlgExtendedError();
|
ret = CommDlgExtendedError();
|
||||||
|
|
Loading…
Reference in New Issue