Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Mayr
wine
Commits
16381518
Commit
16381518
authored
17 years ago
by
Stefan Leichter
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
qcap: Replace DeleteEntireSubKey with RegDeleteTreeW.
parent
b7233ba3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/qcap/dllsetup.c
+1
-32
1 addition, 32 deletions
dlls/qcap/dllsetup.c
with
1 addition
and
32 deletions
dlls/qcap/dllsetup.c
+
1
−
32
View file @
16381518
...
...
@@ -54,37 +54,6 @@ static WCHAR const tmodel_keyname[15] =
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()
*/
...
...
@@ -252,7 +221,7 @@ static HRESULT SetupRegisterAllClasses(const CFactoryTemplate * pList, int num,
pList
->
m_Name
,
szFileName
,
ips32_keyname
,
tmodel_both
);
else
hr
=
Delete
EntireSubKey
(
hkey
,
szCLSID
);
hr
=
Reg
Delete
TreeW
(
hkey
,
szCLSID
);
}
}
RegCloseKey
(
hkey
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment