kernelbase: Implement PrefetchVirtualMemory.

Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
This commit is contained in:
Jinoh Kang 2021-11-26 02:36:39 +09:00 committed by Alexandre Julliard
parent 7d2c03e88d
commit a9c357e5a9
2 changed files with 5 additions and 5 deletions

View file

@ -4231,7 +4231,6 @@ static void test_PrefetchVirtualMemory(void)
return;
}
todo_wine
ok( !pPrefetchVirtualMemory( GetCurrentProcess(), 0, NULL, 0 ),
"PrefetchVirtualMemory unexpected success on 0 entries\n" );

View file

@ -415,11 +415,12 @@ LPVOID WINAPI DECLSPEC_HOTPATCH VirtualAllocFromApp( void *addr, SIZE_T size,
/***********************************************************************
* PrefetchVirtualMemory (kernelbase.@)
*/
BOOL WINAPI /* DECLSPEC_HOTPATCH */ PrefetchVirtualMemory( HANDLE process, ULONG_PTR count,
WIN32_MEMORY_RANGE_ENTRY *addresses, ULONG flags )
BOOL WINAPI DECLSPEC_HOTPATCH PrefetchVirtualMemory( HANDLE process, ULONG_PTR count,
WIN32_MEMORY_RANGE_ENTRY *addresses, ULONG flags )
{
FIXME( "process %p, count %p, addresses %p, flags %#lx stub.\n", process, (void *)count, addresses, flags );
return TRUE;
return set_ntstatus( NtSetInformationVirtualMemory( process, VmPrefetchInformation,
count, (PMEMORY_RANGE_ENTRY)addresses,
&flags, sizeof(flags) ));
}