Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a521990a
Commit
a521990a
authored
Oct 31, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 31, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool.drv/tests: Fix test failures under Windows 8.
parent
3101b501
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
info.c
dlls/winspool.drv/tests/info.c
+11
-1
No files found.
dlls/winspool.drv/tests/info.c
View file @
a521990a
...
@@ -2916,9 +2916,19 @@ static void test_OpenPrinter_defaults(void)
...
@@ -2916,9 +2916,19 @@ static void test_OpenPrinter_defaults(void)
default_size
=
pi
->
pDevMode
->
u1
.
s1
.
dmPaperSize
;
default_size
=
pi
->
pDevMode
->
u1
.
s1
.
dmPaperSize
;
HeapFree
(
GetProcessHeap
(),
0
,
pi
);
HeapFree
(
GetProcessHeap
(),
0
,
pi
);
needed
=
0
;
SetLastError
(
0xdeadbeef
);
ret
=
AddJobA
(
printer
,
1
,
NULL
,
0
,
&
needed
);
ret
=
AddJobA
(
printer
,
1
,
NULL
,
0
,
&
needed
);
ok
(
!
ret
,
"got %d
\n
"
,
ret
);
ok
(
!
ret
,
"got %d
\n
"
,
ret
);
add_job
=
HeapAlloc
(
GetProcessHeap
(),
0
,
needed
);
if
(
GetLastError
()
==
ERROR_NOT_SUPPORTED
)
/* win8 */
{
win_skip
(
"AddJob is not supported on this platform
\n
"
);
ClosePrinter
(
printer
);
return
;
}
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"expected ERROR_INSUFFICIENT_BUFFER, got %d
\n
"
,
GetLastError
()
);
ok
(
needed
>
sizeof
(
ADDJOB_INFO_1A
),
"AddJob needs %u bytes
\n
"
,
needed
);
add_job
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
needed
);
ret
=
AddJobA
(
printer
,
1
,
(
BYTE
*
)
add_job
,
needed
,
&
needed
);
ret
=
AddJobA
(
printer
,
1
,
(
BYTE
*
)
add_job
,
needed
,
&
needed
);
ok
(
ret
,
"AddJobA() failed le=%d
\n
"
,
GetLastError
()
);
ok
(
ret
,
"AddJobA() failed le=%d
\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