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
27280661
Commit
27280661
authored
May 29, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Jun 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool.drv: Do not try to check the registry if opening the printer fails (valgrind).
parent
dbdb244d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
info.c
dlls/winspool.drv/info.c
+2
-3
No files found.
dlls/winspool.drv/info.c
View file @
27280661
...
...
@@ -2530,6 +2530,7 @@ BOOL WINAPI OpenPrinterA(LPSTR lpPrinterName,HANDLE *phPrinter,
*/
BOOL
WINAPI
OpenPrinterW
(
LPWSTR
lpPrinterName
,
HANDLE
*
phPrinter
,
LPPRINTER_DEFAULTSW
pDefault
)
{
HKEY
key
;
TRACE
(
"(%s, %p, %p)
\n
"
,
debugstr_w
(
lpPrinterName
),
phPrinter
,
pDefault
);
...
...
@@ -2542,12 +2543,10 @@ BOOL WINAPI OpenPrinterW(LPWSTR lpPrinterName,HANDLE *phPrinter, LPPRINTER_DEFAU
/* Get the unique handle of the printer or Printserver */
*
phPrinter
=
get_opened_printer_entry
(
lpPrinterName
,
pDefault
);
if
(
*
phPrinter
)
if
(
*
phPrinter
&&
WINSPOOL_GetOpenedPrinterRegKey
(
*
phPrinter
,
&
key
)
==
ERROR_SUCCESS
)
{
HKEY
key
;
DWORD
deleting
=
0
,
size
=
sizeof
(
deleting
),
type
;
DWORD
status
;
WINSPOOL_GetOpenedPrinterRegKey
(
*
phPrinter
,
&
key
);
RegQueryValueExW
(
key
,
May_Delete_Value
,
NULL
,
&
type
,
(
LPBYTE
)
&
deleting
,
&
size
);
WaitForSingleObject
(
init_mutex
,
INFINITE
);
status
=
get_dword_from_reg
(
key
,
StatusW
);
...
...
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