Commit a9c357e5 authored by Jinoh Kang's avatar Jinoh Kang Committed by Alexandre Julliard

kernelbase: Implement PrefetchVirtualMemory.

parent 7d2c03e8
......@@ -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" );
......
......@@ -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) ));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment