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
0bd336a5
Commit
0bd336a5
authored
Nov 04, 2006
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: EnumPorts: Read driver from registry.
parent
54fd8b3d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
info.c
dlls/winspool.drv/info.c
+12
-0
No files found.
dlls/winspool.drv/info.c
View file @
0bd336a5
...
...
@@ -915,6 +915,18 @@ static monitor_t * monitor_load(LPWSTR name, LPWSTR dllname)
lstrcpyW
(
regroot
,
MonitorsW
);
lstrcatW
(
regroot
,
name
);
/* Get the Driver from the Registry */
if
(
driver
==
NULL
)
{
HKEY
hroot
;
DWORD
namesize
;
if
(
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
regroot
,
&
hroot
)
==
ERROR_SUCCESS
)
{
if
(
RegQueryValueExW
(
hroot
,
DriverW
,
NULL
,
NULL
,
NULL
,
&
namesize
)
==
ERROR_SUCCESS
)
{
driver
=
HeapAlloc
(
GetProcessHeap
(),
0
,
namesize
);
RegQueryValueExW
(
hroot
,
DriverW
,
NULL
,
NULL
,
(
LPBYTE
)
driver
,
&
namesize
)
;
}
RegCloseKey
(
hroot
);
}
}
}
pm
->
name
=
strdupW
(
name
);
...
...
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