mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 18:37:19 +00:00
kernelbase: Implement PrefetchVirtualMemory.
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
This commit is contained in:
parent
7d2c03e88d
commit
a9c357e5a9
|
@ -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) ));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue