comdlg32/tests: Vista can return a failure from StartDoc when using the XPS driver - don't fail the test in this case.

This commit is contained in:
Huw Davies 2009-02-19 12:50:45 +00:00 committed by Alexandre Julliard
parent 169f440cb7
commit 466b50cf7d
1 changed files with 5 additions and 1 deletions

View File

@ -335,7 +335,11 @@ static void test_abort_proc(void)
doc_info.lpszOutput = filename;
job_id = StartDocA(print_dc, &doc_info);
ok(job_id > 0, "StartDocA failed ret %d gle %d\n", job_id, GetLastError());
ok(job_id > 0 ||
GetLastError() == ERROR_SPL_NO_STARTDOC, /* Vista can fail with this error when using the XPS driver */
"StartDocA failed ret %d gle %d\n", job_id, GetLastError());
if(job_id <= 0)
{
skip("StartDoc failed\n");