mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:03:00 +00:00
[SDK:RTL] Consistently use the Allocate/FreeStringMemory helpers when allocating/freeing string buffers.
This commit is contained in:
parent
ab827f5225
commit
e51c305f51
2 changed files with 3 additions and 3 deletions
|
@ -61,7 +61,7 @@ RtlpQueryRegistryDirect(IN ULONG ValueType,
|
|||
if (!ReturnString->Buffer)
|
||||
{
|
||||
/* Allocate it */
|
||||
ReturnString->Buffer = RtlpAllocateMemory(ActualLength, TAG_RTLREGISTRY);
|
||||
ReturnString->Buffer = RtlpAllocateStringMemory(ActualLength, TAG_RTLREGISTRY);
|
||||
if (!ReturnString->Buffer) return STATUS_NO_MEMORY;
|
||||
ReturnString->MaximumLength = ActualLength;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue