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
997bea9b
Commit
997bea9b
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 DeviceInstance value in registry, delete todo_wine from test.
parent
6a5c1ca2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
devinst.c
dlls/setupapi/devinst.c
+21
-10
devinst.c
dlls/setupapi/tests/devinst.c
+0
-2
No files found.
dlls/setupapi/devinst.c
View file @
997bea9b
...
...
@@ -2650,20 +2650,31 @@ HKEY WINAPI SetupDiCreateDeviceInterfaceRegKeyW(
samDesired
,
NULL
,
&
interfKey
,
NULL
);
if
(
!
l
)
{
if
(
instancePath
)
{
LONG
l
;
struct
DeviceInfo
*
devInfo
=
(
struct
DeviceInfo
*
)
ifaceInfo
->
device
->
Reserved
;
l
=
RegCreateKeyExW
(
interfKey
,
instancePath
,
0
,
NULL
,
0
,
samDesired
,
NULL
,
&
key
,
NULL
);
if
(
l
)
l
=
RegSetValueExW
(
interfKey
,
DeviceInstance
,
0
,
REG_SZ
,
(
BYTE
*
)
devInfo
->
instanceId
,
(
lstrlenW
(
devInfo
->
instanceId
)
+
1
)
*
sizeof
(
WCHAR
));
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
"
);
}
else
SetLastError
(
l
);
RegCloseKey
(
interfKey
);
}
else
...
...
dlls/setupapi/tests/devinst.c
View file @
997bea9b
...
...
@@ -816,7 +816,6 @@ static void testRegisterAndGetDetail(void)
SetLastError
(
0xdeadbeef
);
ret
=
pSetupDiEnumDeviceInterfaces
(
set
,
NULL
,
&
guid
,
0
,
&
interfaceData
);
todo_wine
ok
(
ret
,
"SetupDiEnumDeviceInterfaces failed: %08x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pSetupDiGetDeviceInterfaceDetailA
(
set
,
&
interfaceData
,
NULL
,
0
,
&
dwSize
,
NULL
);
...
...
@@ -836,7 +835,6 @@ static void testRegisterAndGetDetail(void)
ret
=
pSetupDiGetDeviceInterfaceDetailA
(
set
,
&
interfaceData
,
detail
,
dwSize
,
&
dwSize
,
NULL
);
ok
(
ret
,
"SetupDiGetDeviceInterfaceDetailA failed: %08x
\n
"
,
GetLastError
());
todo_wine
ok
(
!
lstrcmpiA
(
path
,
detail
->
DevicePath
),
"Unexpected path %s
\n
"
,
detail
->
DevicePath
);
HeapFree
(
GetProcessHeap
(),
0
,
detail
);
...
...
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