From: Jeffrey Altman Date: Tue, 15 Nov 2011 14:03:59 +0000 (-0500) Subject: Windows: Create default Security Descriptor X-Git-Tag: upstream/1.8.0_pre1^2~3040 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a1871449eec8d9fc1152319bc63e29db7f9ae231;p=packages%2Fo%2Fopenafs.git Windows: Create default Security Descriptor A misplaced #endif prevented the allocation of a default security descriptor. This results in STATUS_INSUFFICIENT_RESOURCES errors. FIXES 130284 Change-Id: I9c1d67368a1b5d770a4c9a981bdb4a24f8ad3c8e Reviewed-on: http://gerrit.openafs.org/6048 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/kernel/lib/AFSInit.cpp b/src/WINNT/afsrdr/kernel/lib/AFSInit.cpp index b2a1df0e6..658a89200 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSInit.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSInit.cpp @@ -147,7 +147,7 @@ DriverEntry( PDRIVER_OBJECT DriverObject, AFSRtlSetSaclSecurityDescriptor = (PAFSRtlSetSaclSecurityDescriptor)MmGetSystemRoutineAddress( &uniRoutine); } - +#endif ntStatus = AFSCreateDefaultSecurityDescriptor(); if( !NT_SUCCESS( ntStatus)) @@ -157,7 +157,7 @@ DriverEntry( PDRIVER_OBJECT DriverObject, ntStatus = STATUS_SUCCESS; } -#endif + // // Initilize the control device //