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
c7f15882
Commit
c7f15882
authored
Oct 24, 2010
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool.drv: Check return value of EnumPrintersA.
parent
e2eb5e23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
info.c
dlls/winspool.drv/info.c
+1
-2
No files found.
dlls/winspool.drv/info.c
View file @
c7f15882
...
...
@@ -964,8 +964,7 @@ void WINSPOOL_LoadSystemPrinters(void)
printers AddPrinter takes a while. So we'll tag all printers that
were automatically added last time around, if they still exist
we'll leave them be otherwise we'll delete them. */
EnumPrintersA
(
PRINTER_ENUM_LOCAL
,
NULL
,
5
,
NULL
,
0
,
&
needed
,
&
num
);
if
(
needed
)
{
if
(
EnumPrintersA
(
PRINTER_ENUM_LOCAL
,
NULL
,
5
,
NULL
,
0
,
&
needed
,
&
num
)
&&
needed
)
{
PRINTER_INFO_5A
*
pi
=
HeapAlloc
(
GetProcessHeap
(),
0
,
needed
);
if
(
EnumPrintersA
(
PRINTER_ENUM_LOCAL
,
NULL
,
5
,
(
LPBYTE
)
pi
,
needed
,
&
needed
,
&
num
))
{
for
(
i
=
0
;
i
<
num
;
i
++
)
{
...
...
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