From 47b1ba13e661de7b0293ee204dd6ee87ffa4b4da Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Sun, 29 Nov 2015 11:18:11 -0800 Subject: [PATCH] dll: WIP --- src/dll/fsctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dll/fsctl.c b/src/dll/fsctl.c index 4dffb187..d2a6268b 100644 --- a/src/dll/fsctl.c +++ b/src/dll/fsctl.c @@ -32,8 +32,7 @@ FSP_API NTSTATUS FspFsctlCreateVolume(PWSTR DevicePath, GlobalDevicePath(DevicePathBuf, sizeof DevicePathBuf, DevicePath); - SecurityDescriptorSize = 0; - MakeSelfRelativeSD(SecurityDescriptor, 0, &SecurityDescriptorSize); + SecurityDescriptorSize = GetSecurityDescriptorLength(SecurityDescriptor); ParamsBuf = malloc(sizeof *ParamsBuf + SecurityDescriptorSize); if (0 == ParamsBuf) {