mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 19:48:38 -05:00 
			
		
		
		
	sys: FspProcessBufferAcquire: fix silly mistake when using ZwAllocateVirtualMemory
This commit is contained in:
		| @@ -251,13 +251,10 @@ NTSTATUS FspProcessBufferAcquire(SIZE_T BufferSize, PVOID *PBufferCookie, PVOID | ||||
|     else | ||||
|     { | ||||
|     alloc_no_reuse: | ||||
|         NTSTATUS Result; | ||||
|  | ||||
|         *PBufferCookie = 0; | ||||
|         Result = ZwAllocateVirtualMemory(ZwCurrentProcess(), | ||||
|         *PBuffer = 0; | ||||
|         return ZwAllocateVirtualMemory(ZwCurrentProcess(), | ||||
|             PBuffer, 0, &BufferSize, MEM_COMMIT, PAGE_READWRITE); | ||||
|  | ||||
|         return Result; | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user