- Fix hackplementation of ObLogSecurityDescriptor. Callers are supposed to free their input, so we can't re-use it; instead, allocate a new copy like we should.

svn path=/trunk/; revision=19061
This commit is contained in:
Alex Ionescu 2005-11-08 18:54:18 +00:00
parent 402f8f2ea5
commit 99e460ecbb
2 changed files with 7 additions and 3 deletions

View file

@ -10,7 +10,7 @@
#include <rtl.h>
//#define NDEBUG
#define NDEBUG
#include <debug.h>
/*

View file

@ -263,8 +263,12 @@ ObLogSecurityDescriptor(IN PSECURITY_DESCRIPTOR InputSecurityDescriptor,
IN ULONG RefBias)
{
/* HACK: Return the same descriptor back */
DPRINT1("ObLogSecurityDescriptor is not implemented!\n");
*OutputSecurityDescriptor = InputSecurityDescriptor;
PSECURITY_DESCRIPTOR SdCopy;
DPRINT1("ObLogSecurityDescriptor is not implemented! %lx\n", InputSecurityDescriptor->Revision);
SdCopy = ExAllocatePool(PagedPool, sizeof(*SdCopy));
RtlMoveMemory(SdCopy, InputSecurityDescriptor, sizeof(*SdCopy));
*OutputSecurityDescriptor = SdCopy;
return STATUS_SUCCESS;
}