Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5f98620c
Commit
5f98620c
authored
Oct 27, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Oct 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/tests: Fixed up handling of temporary file in printdlg tests.
parent
82a232d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
printdlg.c
dlls/comdlg32/tests/printdlg.c
+5
-7
No files found.
dlls/comdlg32/tests/printdlg.c
View file @
5f98620c
...
...
@@ -320,18 +320,14 @@ static void test_abort_proc(void)
if
(
!
PrintDlgA
(
&
pd
))
{
skip
(
"No default printer available.
\n
"
);
ok
(
DeleteFileA
(
filename
),
"Failed to delete temporary file
\n
"
);
return
;
goto
end
;
}
GlobalFree
(
pd
.
hDevMode
);
GlobalFree
(
pd
.
hDevNames
);
ok
(
pd
.
hDC
!=
NULL
,
"PrintDlg didn't return a DC.
\n
"
);
if
(
!
(
print_dc
=
pd
.
hDC
))
{
ok
(
DeleteFileA
(
filename
),
"Failed to delete temporary file
\n
"
);
return
;
}
goto
end
;
ok
(
SetAbortProc
(
print_dc
,
abort_proc
)
>
0
,
"SetAbortProc failed
\n
"
);
ok
(
!
abort_proc_called
,
"AbortProc got called unexpectedly by SetAbortProc.
\n
"
);
...
...
@@ -371,7 +367,9 @@ static void test_abort_proc(void)
abort_proc_called
=
FALSE
;
end:
ok
(
DeleteFileA
(
filename
),
"Failed to delete temporary file
\n
"
);
SetLastError
(
0xdeadbeef
);
if
(
!
DeleteFileA
(
filename
))
trace
(
"Failed to delete temporary file (err = %x)
\n
"
,
GetLastError
());
}
/* ########################### */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment