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
4c136a5d
Commit
4c136a5d
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: Remove unvarying unicode parameter from WINSPOOL_EnumPrinters.
parent
602d9058
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
info.c
dlls/winspool.drv/info.c
+10
-10
No files found.
dlls/winspool.drv/info.c
View file @
4c136a5d
...
...
@@ -3720,14 +3720,14 @@ BOOL WINAPI GetPrinterA(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter,
}
/*****************************************************************************
* WINSPOOL_EnumPrinters
* WINSPOOL_EnumPrinters
W
*
* Implementation of EnumPrinters
A|
W
* Implementation of EnumPrintersW
*/
static
BOOL
WINSPOOL_EnumPrinters
(
DWORD
dwType
,
LPWSTR
lpszName
,
static
BOOL
WINSPOOL_EnumPrinters
W
(
DWORD
dwType
,
LPWSTR
lpszName
,
DWORD
dwLevel
,
LPBYTE
lpbPrinters
,
DWORD
cbBuf
,
LPDWORD
lpdwNeeded
,
LPDWORD
lpdwReturned
,
BOOL
unicode
)
LPDWORD
lpdwReturned
)
{
HKEY
hkeyPrinters
,
hkeyPrinter
;
...
...
@@ -3824,25 +3824,25 @@ static BOOL WINSPOOL_EnumPrinters(DWORD dwType, LPWSTR lpszName,
switch
(
dwLevel
)
{
case
1
:
WINSPOOL_GetPrinter_1
(
hkeyPrinter
,
(
PRINTER_INFO_1W
*
)
pi
,
buf
,
left
,
&
needed
,
unicode
);
left
,
&
needed
,
TRUE
);
used
+=
needed
;
if
(
pi
)
pi
+=
sizeof
(
PRINTER_INFO_1W
);
break
;
case
2
:
WINSPOOL_GetPrinter_2
(
hkeyPrinter
,
(
PRINTER_INFO_2W
*
)
pi
,
buf
,
left
,
&
needed
,
unicode
);
left
,
&
needed
,
TRUE
);
used
+=
needed
;
if
(
pi
)
pi
+=
sizeof
(
PRINTER_INFO_2W
);
break
;
case
4
:
WINSPOOL_GetPrinter_4
(
hkeyPrinter
,
(
PRINTER_INFO_4W
*
)
pi
,
buf
,
left
,
&
needed
,
unicode
);
left
,
&
needed
,
TRUE
);
used
+=
needed
;
if
(
pi
)
pi
+=
sizeof
(
PRINTER_INFO_4W
);
break
;
case
5
:
WINSPOOL_GetPrinter_5
(
hkeyPrinter
,
(
PRINTER_INFO_5W
*
)
pi
,
buf
,
left
,
&
needed
,
unicode
);
left
,
&
needed
,
TRUE
);
used
+=
needed
;
if
(
pi
)
pi
+=
sizeof
(
PRINTER_INFO_5W
);
break
;
...
...
@@ -3932,8 +3932,8 @@ BOOL WINAPI EnumPrintersW(
LPDWORD
lpdwReturned
/* [out] number of entries returned */
)
{
return
WINSPOOL_EnumPrinters
(
dwType
,
lpszName
,
dwLevel
,
lpbPrinters
,
cbBuf
,
lpdwNeeded
,
lpdwReturned
,
TRUE
);
return
WINSPOOL_EnumPrinters
W
(
dwType
,
lpszName
,
dwLevel
,
lpbPrinters
,
cbBuf
,
lpdwNeeded
,
lpdwReturned
);
}
/******************************************************************
...
...
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