mirror of
https://github.com/winfsp/winfsp.git
synced 2026-06-26 06:18:21 -05:00
sys: FspAlloc*(), FspFree*()
This commit is contained in:
+2
-2
@@ -425,10 +425,10 @@ VOID FspFsvolCreateComplete(
|
||||
|
||||
if (ReparseFileName.Length > FileObject->FileName.MaximumLength)
|
||||
{
|
||||
PVOID Buffer = ExAllocatePoolWithTag(NonPagedPool, ReparseFileName.Length, FSP_TAG);
|
||||
PVOID Buffer = FspAllocExternal(ReparseFileName.Length);
|
||||
if (0 == Buffer)
|
||||
FSP_RETURN(Result = STATUS_INSUFFICIENT_RESOURCES);
|
||||
ExFreePool(FileObject->FileName.Buffer);
|
||||
FspFreeExternal(FileObject->FileName.Buffer);
|
||||
FileObject->FileName.MaximumLength = ReparseFileName.Length;
|
||||
FileObject->FileName.Buffer = Buffer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user