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
fdff5c3a
Commit
fdff5c3a
authored
Jan 29, 2007
by
Bang Jun-Young
Committed by
Alexandre Julliard
Feb 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix NtUnloadKey to match the DDK.
parent
b71e42b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
registry.c
dlls/advapi32/registry.c
+5
-1
reg.c
dlls/ntdll/reg.c
+3
-3
winternl.h
include/winternl.h
+1
-1
No files found.
dlls/advapi32/registry.c
View file @
fdff5c3a
...
...
@@ -2089,6 +2089,8 @@ LONG WINAPI RegUnLoadKeyW( HKEY hkey, LPCWSTR lpSubKey )
{
DWORD
ret
;
HKEY
shkey
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
subkey
;
TRACE
(
"(%p,%s)
\n
"
,
hkey
,
debugstr_w
(
lpSubKey
));
...
...
@@ -2096,7 +2098,9 @@ LONG WINAPI RegUnLoadKeyW( HKEY hkey, LPCWSTR lpSubKey )
if
(
ret
)
return
ERROR_INVALID_PARAMETER
;
ret
=
RtlNtStatusToDosError
(
NtUnloadKey
(
shkey
));
RtlInitUnicodeString
(
&
subkey
,
lpSubKey
);
InitializeObjectAttributes
(
&
attr
,
&
subkey
,
OBJ_CASE_INSENSITIVE
,
shkey
,
NULL
);
ret
=
RtlNtStatusToDosError
(
NtUnloadKey
(
&
attr
));
RegCloseKey
(
shkey
);
...
...
dlls/ntdll/reg.c
View file @
fdff5c3a
...
...
@@ -775,15 +775,15 @@ NTSTATUS WINAPI RtlpNtSetValueKey( HANDLE hkey, ULONG type, const void *data,
* NtUnloadKey [NTDLL.@]
* ZwUnloadKey [NTDLL.@]
*/
NTSTATUS
WINAPI
NtUnloadKey
(
IN
HANDLE
KeyHandle
)
NTSTATUS
WINAPI
NtUnloadKey
(
IN
POBJECT_ATTRIBUTES
attr
)
{
NTSTATUS
ret
;
TRACE
(
"(%p)
\n
"
,
KeyHandle
);
TRACE
(
"(%p)
\n
"
,
attr
);
SERVER_START_REQ
(
unload_registry
)
{
req
->
hkey
=
KeyHandle
;
req
->
hkey
=
attr
->
RootDirectory
;
ret
=
wine_server_call
(
req
);
}
SERVER_END_REQ
;
...
...
include/winternl.h
View file @
fdff5c3a
...
...
@@ -1935,7 +1935,7 @@ NTSTATUS WINAPI NtTerminateProcess(HANDLE,LONG);
NTSTATUS
WINAPI
NtTerminateThread
(
HANDLE
,
LONG
);
NTSTATUS
WINAPI
NtTestAlert
(
VOID
);
NTSTATUS
WINAPI
NtUnloadDriver
(
const
UNICODE_STRING
*
);
NTSTATUS
WINAPI
NtUnloadKey
(
HANDLE
);
NTSTATUS
WINAPI
NtUnloadKey
(
POBJECT_ATTRIBUTES
);
NTSTATUS
WINAPI
NtUnloadKeyEx
(
POBJECT_ATTRIBUTES
,
HANDLE
);
NTSTATUS
WINAPI
NtUnlockFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PLARGE_INTEGER
,
PLARGE_INTEGER
,
PULONG
);
NTSTATUS
WINAPI
NtUnlockVirtualMemory
(
HANDLE
,
PVOID
*
,
SIZE_T
*
,
ULONG
);
...
...
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