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
0c31766c
Commit
0c31766c
authored
Jun 21, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Jun 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Update the devmode when we update the driver.
parent
87292bb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
info.c
dlls/winspool.drv/info.c
+7
-5
No files found.
dlls/winspool.drv/info.c
View file @
0c31766c
...
...
@@ -974,6 +974,10 @@ static BOOL update_driver( HANDLE printer )
HeapFree
(
GetProcessHeap
(),
0
,
ppd_dir
);
HeapFree
(
GetProcessHeap
(),
0
,
ppd
);
HeapFree
(
GetProcessHeap
(),
0
,
queue_name
);
/* call into the driver to update the devmode */
DocumentPropertiesW
(
0
,
printer
,
NULL
,
NULL
,
NULL
,
0
);
return
ret
;
}
...
...
@@ -2369,7 +2373,6 @@ 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
);
WaitForSingleObject
(
init_mutex
,
INFINITE
);
if
(
*
phPrinter
)
{
HKEY
key
;
...
...
@@ -2377,15 +2380,14 @@ BOOL WINAPI OpenPrinterW(LPWSTR lpPrinterName,HANDLE *phPrinter, LPPRINTER_DEFAU
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
);
set_reg_DWORD
(
key
,
StatusW
,
status
&
~
PRINTER_STATUS_DRIVER_UPDATE_NEEDED
);
ReleaseMutex
(
init_mutex
);
if
(
!
deleting
&&
(
status
&
PRINTER_STATUS_DRIVER_UPDATE_NEEDED
))
{
update_driver
(
*
phPrinter
);
set_reg_DWORD
(
key
,
StatusW
,
status
&
~
PRINTER_STATUS_DRIVER_UPDATE_NEEDED
);
}
RegCloseKey
(
key
);
}
ReleaseMutex
(
init_mutex
);
TRACE
(
"returning %d with %u and %p
\n
"
,
*
phPrinter
!=
NULL
,
GetLastError
(),
*
phPrinter
);
return
(
*
phPrinter
!=
0
);
...
...
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