Commit 7fb89b12 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ntoskrnl.exe: Add missing ObReferenceObject call to ObReferenceObjectByName.

parent d01cd45b
......@@ -283,6 +283,12 @@ static void dereference_kernel_object( void *obj )
header->type->release( obj );
}
static void ObReferenceObject( void *obj )
{
TRACE( "(%p): stub\n", obj );
}
static const WCHAR file_type_name[] = {'F','i','l','e',0};
static struct _OBJECT_TYPE file_type = {
......@@ -2631,17 +2637,11 @@ NTSTATUS WINAPI ObReferenceObjectByName( UNICODE_STRING *ObjectName,
}
driver = WINE_RB_ENTRY_VALUE(entry, struct wine_driver, entry);
*Object = &driver->driver_obj;
ObReferenceObject( *Object = &driver->driver_obj );
return STATUS_SUCCESS;
}
static void ObReferenceObject( void *obj )
{
TRACE( "(%p): stub\n", obj );
}
/***********************************************************************
* ObReferenceObjectByPointer (NTOSKRNL.EXE.@)
*/
......
Markdown is supported
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