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
e9cd221e
Commit
e9cd221e
authored
Dec 12, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool/tests: Don't treat having no printers as a failure.
parent
7dd80669
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
info.c
dlls/winspool.drv/tests/info.c
+24
-2
No files found.
dlls/winspool.drv/tests/info.c
View file @
e9cd221e
...
...
@@ -1637,15 +1637,37 @@ static void test_EnumPrinters(void)
DWORD
ret
;
SetLastError
(
0xdeadbeef
);
neededA
=
-
1
;
ret
=
EnumPrintersA
(
PRINTER_ENUM_LOCAL
,
NULL
,
2
,
NULL
,
0
,
&
neededA
,
&
num
);
ok
(
ret
==
0
,
"ret %d
\n
"
,
ret
);
if
(
!
ret
)
{
/* We have 1 or more printers */
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"gle %d
\n
"
,
GetLastError
());
ok
(
neededA
>
0
,
"Expected neededA to show the number of needed bytes
\n
"
);
}
else
{
/* We don't have any printers defined */
ok
(
GetLastError
()
==
S_OK
,
"gle %d
\n
"
,
GetLastError
());
ok
(
neededA
==
0
,
"Expected neededA to be zero
\n
"
);
}
ok
(
num
==
0
,
"num %d
\n
"
,
num
);
SetLastError
(
0xdeadbeef
);
neededW
=
-
1
;
ret
=
EnumPrintersW
(
PRINTER_ENUM_LOCAL
,
NULL
,
2
,
NULL
,
0
,
&
neededW
,
&
num
);
ok
(
ret
==
0
,
"ret %d
\n
"
,
ret
);
if
(
!
ret
)
{
/* We have 1 or more printers */
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"gle %d
\n
"
,
GetLastError
());
ok
(
neededW
>
0
,
"Expected neededW to show the number of needed bytes
\n
"
);
}
else
{
/* We don't have any printers defined */
ok
(
GetLastError
()
==
S_OK
,
"gle %d
\n
"
,
GetLastError
());
ok
(
neededW
==
0
,
"Expected neededW to be zero
\n
"
);
}
ok
(
num
==
0
,
"num %d
\n
"
,
num
);
/* Outlook2003 relies on the buffer size returned by EnumPrintersA being big enough
...
...
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