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
a587b793
Commit
a587b793
authored
Dec 04, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Forward SHDeleteEmptyKey() to shcore.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ac516a70
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
74 deletions
+6
-74
api-ms-win-downlevel-shlwapi-l2-1-0.spec
...l-shlwapi-l2-1-0/api-ms-win-downlevel-shlwapi-l2-1-0.spec
+2
-2
shcore.spec
dlls/shcore/shcore.spec
+2
-2
reg.c
dlls/shlwapi/reg.c
+0
-68
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+2
-2
No files found.
dlls/api-ms-win-downlevel-shlwapi-l2-1-0/api-ms-win-downlevel-shlwapi-l2-1-0.spec
View file @
a587b793
...
...
@@ -19,8 +19,8 @@
@ stdcall SHCreateStreamOnFileEx(wstr long long long ptr ptr) shlwapi.SHCreateStreamOnFileEx
@ stdcall SHCreateStreamOnFileW(wstr long ptr) shlwapi.SHCreateStreamOnFileW
@ stdcall SHCreateThreadRef(ptr ptr) shlwapi.SHCreateThreadRef
@ stdcall SHDeleteEmptyKeyA(long
p
tr) shlwapi.SHDeleteEmptyKeyA
@ stdcall SHDeleteEmptyKeyW(long
p
tr) shlwapi.SHDeleteEmptyKeyW
@ stdcall SHDeleteEmptyKeyA(long
s
tr) shlwapi.SHDeleteEmptyKeyA
@ stdcall SHDeleteEmptyKeyW(long
ws
tr) shlwapi.SHDeleteEmptyKeyW
@ stdcall SHDeleteKeyA(long str) shlwapi.SHDeleteKeyA
@ stdcall SHDeleteKeyW(long wstr) shlwapi.SHDeleteKeyW
@ stdcall SHDeleteValueA(long str str) shlwapi.SHDeleteValueA
...
...
dlls/shcore/shcore.spec
View file @
a587b793
...
...
@@ -40,8 +40,8 @@
@ stdcall SHCreateThread(ptr ptr long ptr)
@ stdcall SHCreateThreadRef(ptr ptr)
@ stub SHCreateThreadWithHandle
@ stdcall SHDeleteEmptyKeyA(long
p
tr)
@ stdcall SHDeleteEmptyKeyW(long
p
tr)
@ stdcall SHDeleteEmptyKeyA(long
s
tr)
@ stdcall SHDeleteEmptyKeyW(long
ws
tr)
@ stdcall SHDeleteKeyA(long str)
@ stdcall SHDeleteKeyW(long wstr)
@ stdcall SHDeleteValueA(long str str)
...
...
dlls/shlwapi/reg.c
View file @
a587b793
...
...
@@ -1591,74 +1591,6 @@ DWORD WINAPI SHDeleteKeyW(HKEY hKey, LPCWSTR lpszSubKey)
}
/*************************************************************************
* SHDeleteEmptyKeyA [SHLWAPI.@]
*
* Delete a registry key with no sub keys.
*
* PARAMS
* hKey [I] Handle to registry key
* lpszSubKey [I] Name of sub key to delete
*
* RETURNS
* Success: ERROR_SUCCESS. The key is deleted.
* Failure: If the key is not empty, returns ERROR_KEY_HAS_CHILDREN. Otherwise
* returns an error code from RegOpenKeyExA(), RegQueryInfoKeyA() or
* RegDeleteKeyA().
*/
DWORD
WINAPI
SHDeleteEmptyKeyA
(
HKEY
hKey
,
LPCSTR
lpszSubKey
)
{
DWORD
dwRet
,
dwKeyCount
=
0
;
HKEY
hSubKey
=
0
;
TRACE
(
"(hkey=%p,%s)
\n
"
,
hKey
,
debugstr_a
(
lpszSubKey
));
dwRet
=
RegOpenKeyExA
(
hKey
,
lpszSubKey
,
0
,
KEY_READ
,
&
hSubKey
);
if
(
!
dwRet
)
{
dwRet
=
RegQueryInfoKeyA
(
hSubKey
,
NULL
,
NULL
,
NULL
,
&
dwKeyCount
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
RegCloseKey
(
hSubKey
);
if
(
!
dwRet
)
{
if
(
!
dwKeyCount
)
dwRet
=
RegDeleteKeyA
(
hKey
,
lpszSubKey
);
else
dwRet
=
ERROR_KEY_HAS_CHILDREN
;
}
}
return
dwRet
;
}
/*************************************************************************
* SHDeleteEmptyKeyW [SHLWAPI.@]
*
* See SHDeleteEmptyKeyA.
*/
DWORD
WINAPI
SHDeleteEmptyKeyW
(
HKEY
hKey
,
LPCWSTR
lpszSubKey
)
{
DWORD
dwRet
,
dwKeyCount
=
0
;
HKEY
hSubKey
=
0
;
TRACE
(
"(hkey=%p, %s)
\n
"
,
hKey
,
debugstr_w
(
lpszSubKey
));
dwRet
=
RegOpenKeyExW
(
hKey
,
lpszSubKey
,
0
,
KEY_READ
,
&
hSubKey
);
if
(
!
dwRet
)
{
dwRet
=
RegQueryInfoKeyW
(
hSubKey
,
NULL
,
NULL
,
NULL
,
&
dwKeyCount
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
RegCloseKey
(
hSubKey
);
if
(
!
dwRet
)
{
if
(
!
dwKeyCount
)
dwRet
=
RegDeleteKeyW
(
hKey
,
lpszSubKey
);
else
dwRet
=
ERROR_KEY_HAS_CHILDREN
;
}
}
return
dwRet
;
}
/*************************************************************************
* SHDeleteOrphanKeyA [SHLWAPI.@]
*
* Delete a registry key with no sub keys or values.
...
...
dlls/shlwapi/shlwapi.spec
View file @
a587b793
...
...
@@ -688,8 +688,8 @@
@ stdcall SHCreateStreamOnFileW(wstr long ptr) shcore.SHCreateStreamOnFileW
@ stdcall SHCreateStreamWrapper(ptr ptr long ptr)
@ stdcall SHCreateThreadRef(ptr ptr) shcore.SHCreateThreadRef
@ stdcall SHDeleteEmptyKeyA(long
ptr)
@ stdcall SHDeleteEmptyKeyW(long
ptr)
@ stdcall SHDeleteEmptyKeyA(long
str) shcore.SHDeleteEmptyKeyA
@ stdcall SHDeleteEmptyKeyW(long
wstr) shcore.SHDeleteEmptyKeyW
@ stdcall SHDeleteKeyA(long str)
@ stdcall SHDeleteKeyW(long wstr)
@ stdcall SHDeleteOrphanKeyA(long str)
...
...
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