Move save_registry and unload_key server calls to ntdll.
This commit is contained in:
parent
6e821739f2
commit
f74b0adbca
|
@ -1680,13 +1680,7 @@ LONG WINAPI RegSaveKeyW( HKEY hkey, LPCWSTR file, LPSECURITY_ATTRIBUTES sa )
|
|||
MESSAGE("Wow, we are already fiddling with a temp file %s with an ordinal as high as %d !\nYou might want to delete all corresponding temp files in that directory.\n", debugstr_w(buffer), count);
|
||||
}
|
||||
|
||||
SERVER_START_REQ( save_registry )
|
||||
{
|
||||
req->hkey = hkey;
|
||||
req->file = handle;
|
||||
ret = RtlNtStatusToDosError( wine_server_call( req ) );
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
ret = RtlNtStatusToDosError(NtSaveKey(hkey, handle));
|
||||
|
||||
CloseHandle( handle );
|
||||
if (!ret)
|
||||
|
@ -1791,12 +1785,8 @@ LONG WINAPI RegUnLoadKeyW( HKEY hkey, LPCWSTR lpSubKey )
|
|||
if( ret )
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
|
||||
SERVER_START_REQ( unload_registry )
|
||||
{
|
||||
req->hkey = shkey;
|
||||
ret = RtlNtStatusToDosError( wine_server_call(req) );
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
ret = RtlNtStatusToDosError(NtUnloadKey(shkey));
|
||||
|
||||
RegCloseKey(shkey);
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -656,13 +656,21 @@ NTSTATUS WINAPI NtRestoreKey(
|
|||
* NtSaveKey [NTDLL.@]
|
||||
* ZwSaveKey [NTDLL.@]
|
||||
*/
|
||||
NTSTATUS WINAPI NtSaveKey(
|
||||
IN HKEY KeyHandle,
|
||||
IN HANDLE FileHandle)
|
||||
NTSTATUS WINAPI NtSaveKey(IN HKEY KeyHandle, IN HANDLE FileHandle)
|
||||
{
|
||||
FIXME("(%p,%p) stub\n",
|
||||
KeyHandle, FileHandle);
|
||||
return STATUS_SUCCESS;
|
||||
NTSTATUS ret;
|
||||
|
||||
TRACE("(%p,%p)\n", KeyHandle, FileHandle);
|
||||
|
||||
SERVER_START_REQ( save_registry )
|
||||
{
|
||||
req->hkey = KeyHandle;
|
||||
req->file = FileHandle;
|
||||
ret = wine_server_call( req );
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
|
||||
return ret;
|
||||
}
|
||||
/******************************************************************************
|
||||
* NtSetInformationKey [NTDLL.@]
|
||||
|
@ -727,12 +735,20 @@ NTSTATUS WINAPI RtlpNtSetValueKey( HKEY hkey, ULONG type, const void *data,
|
|||
* NtUnloadKey [NTDLL.@]
|
||||
* ZwUnloadKey [NTDLL.@]
|
||||
*/
|
||||
NTSTATUS WINAPI NtUnloadKey(
|
||||
IN HKEY KeyHandle)
|
||||
NTSTATUS WINAPI NtUnloadKey(IN HKEY KeyHandle)
|
||||
{
|
||||
FIXME("(%p) stub\n",
|
||||
KeyHandle);
|
||||
return STATUS_SUCCESS;
|
||||
NTSTATUS ret;
|
||||
|
||||
TRACE("(%p)\n", KeyHandle);
|
||||
|
||||
SERVER_START_REQ( unload_registry )
|
||||
{
|
||||
req->hkey = KeyHandle;
|
||||
ret = wine_server_call(req);
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
|
Loading…
Reference in New Issue