mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
- 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:
parent
402f8f2ea5
commit
99e460ecbb
2 changed files with 7 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#include <rtl.h>
|
#include <rtl.h>
|
||||||
|
|
||||||
//#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -263,8 +263,12 @@ ObLogSecurityDescriptor(IN PSECURITY_DESCRIPTOR InputSecurityDescriptor,
|
||||||
IN ULONG RefBias)
|
IN ULONG RefBias)
|
||||||
{
|
{
|
||||||
/* HACK: Return the same descriptor back */
|
/* HACK: Return the same descriptor back */
|
||||||
DPRINT1("ObLogSecurityDescriptor is not implemented!\n");
|
PSECURITY_DESCRIPTOR SdCopy;
|
||||||
*OutputSecurityDescriptor = InputSecurityDescriptor;
|
DPRINT1("ObLogSecurityDescriptor is not implemented! %lx\n", InputSecurityDescriptor->Revision);
|
||||||
|
|
||||||
|
SdCopy = ExAllocatePool(PagedPool, sizeof(*SdCopy));
|
||||||
|
RtlMoveMemory(SdCopy, InputSecurityDescriptor, sizeof(*SdCopy));
|
||||||
|
*OutputSecurityDescriptor = SdCopy;
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue