From 67e73991645c36e82f9c25b073e6e089eb87e968 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Tue, 4 Dec 2018 19:20:47 +0100 Subject: [PATCH] [NTOSKRNL] Use proper enum type for IopCreateSecurityDescriptorPerType() --- ntoskrnl/include/internal/io.h | 2 +- ntoskrnl/io/iomgr/device.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ntoskrnl/include/internal/io.h b/ntoskrnl/include/internal/io.h index 5835c66aa31..8ae32a0dc5c 100644 --- a/ntoskrnl/include/internal/io.h +++ b/ntoskrnl/include/internal/io.h @@ -527,7 +527,7 @@ typedef struct _RESERVE_IRP_ALLOCATOR } RESERVE_IRP_ALLOCATOR, *PRESERVE_IRP_ALLOCATOR; // -// +// Type selection for IopCreateSecurityDescriptorPerType() // typedef enum _SECURITY_DESCRIPTOR_TYPE { diff --git a/ntoskrnl/io/iomgr/device.c b/ntoskrnl/io/iomgr/device.c index 7d17ce95516..3810dd587c4 100644 --- a/ntoskrnl/io/iomgr/device.c +++ b/ntoskrnl/io/iomgr/device.c @@ -727,7 +727,7 @@ IopVerifyDeviceObjectOnStack(IN PDEVICE_OBJECT BaseDeviceObject, NTSTATUS NTAPI IopCreateSecurityDescriptorPerType(IN PSECURITY_DESCRIPTOR SecurityDescriptor, - IN ULONG Type, + IN SECURITY_DESCRIPTOR_TYPE Type, OUT PULONG OutputFlags) { PACL Dacl;