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
0506d3cd
Commit
0506d3cd
authored
Nov 30, 2009
by
Jeremy White
Committed by
Alexandre Julliard
Dec 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Add a test which shows the flaws in the current all enumeration.
parent
6994b721
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
info.c
dlls/winspool.drv/tests/info.c
+9
-0
No files found.
dlls/winspool.drv/tests/info.c
View file @
0506d3cd
...
...
@@ -1245,6 +1245,15 @@ static void test_EnumPrinterDrivers(void)
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pcbNeeded
);
res
=
EnumPrinterDriversA
(
NULL
,
env_all
,
1
,
buffer
,
pcbNeeded
,
&
pcbNeeded
,
&
pcReturned
);
ok
(
res
,
"EnumPrinterDriversA failed %u
\n
"
,
GetLastError
());
if
(
res
&&
pcReturned
>
0
)
{
DRIVER_INFO_1
*
di_1
=
(
DRIVER_INFO_1
*
)
buffer
;
todo_wine
ok
((
LPBYTE
)
di_1
->
pName
==
NULL
||
(
LPBYTE
)
di_1
->
pName
<
buffer
||
(
LPBYTE
)
di_1
->
pName
>=
(
LPBYTE
)(
di_1
+
pcReturned
),
"Driver Information not in sequence; pName %p, top of data %p
\n
"
,
di_1
->
pName
,
di_1
+
pcReturned
);
}
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
}
...
...
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