Commit 4b466805 authored by Santino Mazza's avatar Santino Mazza Committed by Alexandre Julliard
Browse files

ntdll: Move NtLoadKey implementation to NtLoadKeyEx.



Signed-off-by: Santino Mazza's avatarSantino Mazza <smazza@codeweavers.com>
parent 92b2329d
Pipeline #1953 skipped
......@@ -680,6 +680,24 @@ NTSTATUS WINAPI NtFlushKey( HANDLE key )
* NtLoadKey (NTDLL.@)
*/
NTSTATUS WINAPI NtLoadKey( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *file )
{
TRACE( "(%p,%p)\n", attr, file );
return NtLoadKeyEx( attr, file, 0, 0, 0, 0, NULL, NULL );
}
/******************************************************************************
* NtLoadKey2 (NTDLL.@)
*/
NTSTATUS WINAPI NtLoadKey2( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *file, ULONG flags )
{
return NtLoadKeyEx( attr, file, flags, 0, 0, 0, NULL, NULL );
}
/******************************************************************************
* NtLoadKeyEx (NTDLL.@)
*/
NTSTATUS WINAPI NtLoadKeyEx( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *file, ULONG flags, HANDLE trustkey,
HANDLE event, ACCESS_MASK access, HANDLE *roothandle, IO_STATUS_BLOCK *iostatus )
{
NTSTATUS ret;
HANDLE key;
......@@ -689,7 +707,14 @@ NTSTATUS WINAPI NtLoadKey( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *fil
UNICODE_STRING nt_name;
OBJECT_ATTRIBUTES new_attr = *file;
TRACE("(%p,%p)\n", attr, file);
TRACE( "(%p,%p,0x%x,%p,%p,0x%x,%p,%p)\n", attr, file, flags, trustkey, event, access, roothandle, iostatus );
if (flags) FIXME( "flags %x not handled\n", flags );
if (trustkey) FIXME("trustkey parameter not supported\n");
if (event) FIXME("event parameter not supported\n");
if (access) FIXME("access parameter not supported\n");
if (roothandle) FIXME("roothandle is not filled\n");
if (iostatus) FIXME("iostatus is not filled\n");
get_redirect( &new_attr, &nt_name );
if (!(ret = nt_to_unix_file_name( &new_attr, &unix_name, FILE_OPEN )))
......@@ -719,27 +744,6 @@ NTSTATUS WINAPI NtLoadKey( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *fil
return ret;
}
/******************************************************************************
* NtLoadKey2 (NTDLL.@)
*/
NTSTATUS WINAPI NtLoadKey2( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *file, ULONG flags )
{
FIXME( "(%p,%p,0x%08x) semi-stub: ignoring flags\n", attr, file, flags );
return NtLoadKey( attr, file );
}
/******************************************************************************
* NtLoadKeyEx (NTDLL.@)
*/
NTSTATUS WINAPI NtLoadKeyEx( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *file, ULONG flags, HANDLE trustkey,
HANDLE event, ACCESS_MASK access, HANDLE *roothandle, IO_STATUS_BLOCK *iostatus )
{
FIXME( "(%p,%p,0x%08x,%p,%p,0x%08x,%p,%p) stub\n", attr, file, flags, trustkey, event,
access, roothandle, iostatus );
return STATUS_NOT_IMPLEMENTED;
}
/******************************************************************************
* NtUnloadKey (NTDLL.@)
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment