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
16381518
Commit
16381518
authored
Jun 04, 2007
by
Stefan Leichter
Committed by
Alexandre Julliard
Jun 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Replace DeleteEntireSubKey with RegDeleteTreeW.
parent
b7233ba3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
32 deletions
+1
-32
dllsetup.c
dlls/qcap/dllsetup.c
+1
-32
No files found.
dlls/qcap/dllsetup.c
View file @
16381518
...
...
@@ -55,37 +55,6 @@ static WCHAR const tmodel_both[] =
{
'B'
,
'o'
,
't'
,
'h'
,
0
};
/*
* Delete a key and all its subkeys
*/
static
HRESULT
DeleteEntireSubKey
(
HKEY
hkey
,
LPWSTR
strSubKey
)
{
WCHAR
buffer
[
MAX_KEY_LEN
];
DWORD
dw
=
MAX_KEY_LEN
;
FILETIME
ft
;
HKEY
hk
;
LONG
ret
=
RegOpenKeyExW
(
hkey
,
strSubKey
,
0
,
MAXIMUM_ALLOWED
,
&
hk
);
if
(
ERROR_SUCCESS
==
ret
)
{
/* Keep on enumerating the first key and deleting that */
for
(
;
;
)
{
dw
=
MAX_KEY_LEN
;
ret
=
RegEnumKeyExW
(
hk
,
0
,
buffer
,
&
dw
,
NULL
,
NULL
,
NULL
,
&
ft
);
if
(
ERROR_SUCCESS
==
ret
)
DeleteEntireSubKey
(
hk
,
buffer
);
else
break
;
}
RegCloseKey
(
hk
);
RegDeleteKeyW
(
hkey
,
strSubKey
);
}
return
NOERROR
;
}
/*
* SetupRegisterClass()
*/
static
HRESULT
SetupRegisterClass
(
HKEY
clsid
,
LPCWSTR
szCLSID
,
...
...
@@ -252,7 +221,7 @@ static HRESULT SetupRegisterAllClasses(const CFactoryTemplate * pList, int num,
pList
->
m_Name
,
szFileName
,
ips32_keyname
,
tmodel_both
);
else
hr
=
DeleteEntireSubKey
(
hkey
,
szCLSID
);
hr
=
RegDeleteTreeW
(
hkey
,
szCLSID
);
}
}
RegCloseKey
(
hkey
);
...
...
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