Skip to content

Commit

Permalink
use InitializeObjectAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-GS committed Jan 21, 2025
1 parent 101f6b9 commit a7def7a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/inc/quic_platform_winkernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,15 @@ CxPlatEventQInitialize(
_Out_ CXPLAT_EVENTQ* queue
)
{
return NT_SUCCESS(ZwCreateIoCompletion(queue, IO_COMPLETION_ALL_ACCESS, NULL, 0));
OBJECT_ATTRIBUTES KernelObjectAttributes;

InitializeObjectAttributes(&KernelObjectAttributes,
/* ObjectName */ NULL,
/* AttributesFlag */ OBJ_KERNEL_HANDLE,
/* RootDirectory */ NULL,
/* SecurityAttributes */ NULL);

return NT_SUCCESS(ZwCreateIoCompletion(queue, IO_COMPLETION_ALL_ACCESS, &KernelObjectAttributes, 0));
}

_IRQL_requires_max_(PASSIVE_LEVEL)
Expand Down

0 comments on commit a7def7a

Please sign in to comment.