Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6a5c1ca2
Commit
6a5c1ca2
authored
Apr 01, 2008
by
Alexander Morozov
Committed by
Alexandre Julliard
Apr 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Create device interface keys in registry as in Windows XP.
parent
b622101e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
10 deletions
+33
-10
devinst.c
dlls/setupapi/devinst.c
+33
-10
No files found.
dlls/setupapi/devinst.c
View file @
6a5c1ca2
...
...
@@ -2631,21 +2631,44 @@ HKEY WINAPI SetupDiCreateDeviceInterfaceRegKeyW(
struct
InterfaceInfo
*
ifaceInfo
=
(
struct
InterfaceInfo
*
)
DeviceInterfaceData
->
Reserved
;
PWSTR
instancePath
=
SETUPDI_GetInstancePath
(
ifaceInfo
);
PWSTR
interfKeyName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
ifaceInfo
->
symbolicLink
)
+
1
)
*
sizeof
(
WCHAR
));
HKEY
interfKey
;
WCHAR
*
ptr
;
if
(
instancePath
)
lstrcpyW
(
interfKeyName
,
ifaceInfo
->
symbolicLink
);
if
(
lstrlenW
(
ifaceInfo
->
symbolicLink
)
>
3
)
{
LONG
l
;
l
=
RegCreateKeyExW
(
parent
,
instancePath
,
0
,
NULL
,
0
,
samDesired
,
NULL
,
&
key
,
NULL
);
if
(
l
)
interfKeyName
[
0
]
=
'#'
;
interfKeyName
[
1
]
=
'#'
;
interfKeyName
[
3
]
=
'#'
;
}
ptr
=
strchrW
(
interfKeyName
,
'\\'
);
if
(
ptr
)
*
ptr
=
0
;
l
=
RegCreateKeyExW
(
parent
,
interfKeyName
,
0
,
NULL
,
0
,
samDesired
,
NULL
,
&
interfKey
,
NULL
);
if
(
!
l
)
{
if
(
instancePath
)
{
SetLastError
(
l
);
key
=
INVALID_HANDLE_VALUE
;
LONG
l
;
l
=
RegCreateKeyExW
(
interfKey
,
instancePath
,
0
,
NULL
,
0
,
samDesired
,
NULL
,
&
key
,
NULL
);
if
(
l
)
{
SetLastError
(
l
);
key
=
INVALID_HANDLE_VALUE
;
}
else
if
(
InfHandle
)
FIXME
(
"INF section installation unsupported
\n
"
);
}
else
if
(
InfHandle
)
FIXME
(
"INF section installation unsupported
\n
"
);
RegCloseKey
(
interfKey
);
}
else
SetLastError
(
l
);
HeapFree
(
GetProcessHeap
(),
0
,
interfKeyName
);
HeapFree
(
GetProcessHeap
(),
0
,
instancePath
);
RegCloseKey
(
parent
);
}
...
...
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