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
7d615965
Commit
7d615965
authored
Jun 13, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Jun 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Use the helper to set DWORD registry values.
parent
f15f359c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
info.c
dlls/winspool.drv/info.c
+5
-10
No files found.
dlls/winspool.drv/info.c
View file @
7d615965
...
...
@@ -3029,8 +3029,7 @@ HANDLE WINAPI AddPrinterW(LPWSTR pName, DWORD Level, LPBYTE pPrinter)
}
set_devices_and_printerports
(
pi
);
RegSetValueExW
(
hkeyPrinter
,
AttributesW
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
pi
->
Attributes
,
sizeof
(
DWORD
));
set_reg_DWORD
(
hkeyPrinter
,
AttributesW
,
pi
->
Attributes
);
set_reg_szW
(
hkeyPrinter
,
DatatypeW
,
pi
->
pDatatype
);
/* See if we can load the driver. We may need the devmode structure anyway
...
...
@@ -3076,16 +3075,12 @@ HANDLE WINAPI AddPrinterW(LPWSTR pName, DWORD Level, LPBYTE pPrinter)
set_reg_szW
(
hkeyPrinter
,
PortW
,
pi
->
pPortName
);
set_reg_szW
(
hkeyPrinter
,
Print_ProcessorW
,
pi
->
pPrintProcessor
);
set_reg_szW
(
hkeyPrinter
,
Printer_DriverW
,
pi
->
pDriverName
);
RegSetValueExW
(
hkeyPrinter
,
PriorityW
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
pi
->
Priority
,
sizeof
(
DWORD
));
set_reg_DWORD
(
hkeyPrinter
,
PriorityW
,
pi
->
Priority
);
set_reg_szW
(
hkeyPrinter
,
Separator_FileW
,
pi
->
pSepFile
);
set_reg_szW
(
hkeyPrinter
,
Share_NameW
,
pi
->
pShareName
);
RegSetValueExW
(
hkeyPrinter
,
StartTimeW
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
pi
->
StartTime
,
sizeof
(
DWORD
));
RegSetValueExW
(
hkeyPrinter
,
StatusW
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
pi
->
Status
,
sizeof
(
DWORD
));
RegSetValueExW
(
hkeyPrinter
,
UntilTimeW
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
pi
->
UntilTime
,
sizeof
(
DWORD
));
set_reg_DWORD
(
hkeyPrinter
,
StartTimeW
,
pi
->
StartTime
);
set_reg_DWORD
(
hkeyPrinter
,
StatusW
,
pi
->
Status
);
set_reg_DWORD
(
hkeyPrinter
,
UntilTimeW
,
pi
->
UntilTime
);
RegCloseKey
(
hkeyPrinter
);
RegCloseKey
(
hkeyPrinters
);
...
...
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