mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
sys: FspProcessBufferAcquire: fix silly mistake when using ZwAllocateVirtualMemory
This commit is contained in:
parent
3215d8e26a
commit
6774c34422
@ -251,13 +251,10 @@ NTSTATUS FspProcessBufferAcquire(SIZE_T BufferSize, PVOID *PBufferCookie, PVOID
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
alloc_no_reuse:
|
alloc_no_reuse:
|
||||||
NTSTATUS Result;
|
|
||||||
|
|
||||||
*PBufferCookie = 0;
|
*PBufferCookie = 0;
|
||||||
Result = ZwAllocateVirtualMemory(ZwCurrentProcess(),
|
*PBuffer = 0;
|
||||||
|
return ZwAllocateVirtualMemory(ZwCurrentProcess(),
|
||||||
PBuffer, 0, &BufferSize, MEM_COMMIT, PAGE_READWRITE);
|
PBuffer, 0, &BufferSize, MEM_COMMIT, PAGE_READWRITE);
|
||||||
|
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user