Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a9c357e5
Commit
a9c357e5
authored
Nov 26, 2021
by
Jinoh Kang
Committed by
Alexandre Julliard
Jul 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Implement PrefetchVirtualMemory.
Signed-off-by:
Jinoh Kang
<
jinoh.kang.kr@gmail.com
>
parent
7d2c03e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
virtual.c
dlls/kernel32/tests/virtual.c
+0
-1
memory.c
dlls/kernelbase/memory.c
+5
-4
No files found.
dlls/kernel32/tests/virtual.c
View file @
a9c357e5
...
...
@@ -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
"
);
...
...
dlls/kernelbase/memory.c
View file @
a9c357e5
...
...
@@ -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
)
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment