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
a9d74cf9
Commit
a9d74cf9
authored
Sep 21, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Respect samDesired in SetupDiOpenClassRegKeyExW.
parent
243ac3ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
22 deletions
+34
-22
devinst.c
dlls/setupapi/devinst.c
+34
-22
No files found.
dlls/setupapi/devinst.c
View file @
a9d74cf9
...
@@ -2337,7 +2337,6 @@ HKEY WINAPI SetupDiOpenClassRegKeyExW(
...
@@ -2337,7 +2337,6 @@ HKEY WINAPI SetupDiOpenClassRegKeyExW(
PCWSTR
MachineName
,
PCWSTR
MachineName
,
PVOID
Reserved
)
PVOID
Reserved
)
{
{
WCHAR
bracedGuidString
[
39
];
HKEY
hClassesKey
;
HKEY
hClassesKey
;
HKEY
hClassKey
;
HKEY
hClassKey
;
LPCWSTR
lpKeyName
;
LPCWSTR
lpKeyName
;
...
@@ -2363,33 +2362,46 @@ HKEY WINAPI SetupDiOpenClassRegKeyExW(
...
@@ -2363,33 +2362,46 @@ HKEY WINAPI SetupDiOpenClassRegKeyExW(
return
INVALID_HANDLE_VALUE
;
return
INVALID_HANDLE_VALUE
;
}
}
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
if
(
!
ClassGuid
)
lpKeyName
,
0
,
KEY_ALL_ACCESS
,
&
hClassesKey
))
{
{
return
INVALID_HANDLE_VALUE
;
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
}
lpKeyName
,
0
,
if
(
ClassGuid
==
NULL
)
samDesired
,
&
hClassesKey
))
{
return
INVALID_HANDLE_VALUE
;
}
return
hClassesKey
;
return
hClassesKey
;
}
else
{
WCHAR
bracedGuidString
[
39
];
SETUPDI_GuidToString
(
ClassGuid
,
bracedGuidString
);
SETUPDI_GuidToString
(
ClassGuid
,
bracedGuidString
);
if
(
RegOpenKeyExW
(
hClassesKey
,
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
bracedGuidString
,
lpKeyName
,
0
,
0
,
KEY_ALL_ACCESS
,
samDesired
,
&
hClassKey
))
&
hClassesKey
))
{
{
RegCloseKey
(
hClassesKey
);
return
INVALID_HANDLE_VALUE
;
return
INVALID_HANDLE_VALUE
;
}
}
if
(
RegOpenKeyExW
(
hClassesKey
,
bracedGuidString
,
0
,
samDesired
,
&
hClassKey
))
{
RegCloseKey
(
hClassesKey
);
return
INVALID_HANDLE_VALUE
;
}
RegCloseKey
(
hClassesKey
);
RegCloseKey
(
hClassesKey
);
return
hClassKey
;
return
hClassKey
;
}
}
}
/***********************************************************************
/***********************************************************************
...
...
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