Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c55349f6
Commit
c55349f6
authored
Oct 17, 2020
by
Myah Caron
Committed by
Alexandre Julliard
Oct 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Implement VirtualAlloc2.
Signed-off-by:
Myah Caron
<
qsniyg@protonmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d453db5b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
kernelbase.spec
dlls/kernelbase/kernelbase.spec
+1
-0
memory.c
dlls/kernelbase/memory.c
+15
-0
winbase.h
include/winbase.h
+1
-0
No files found.
dlls/kernelbase/kernelbase.spec
View file @
c55349f6
...
...
@@ -1672,6 +1672,7 @@
# @ stub VerifyPackageId
# @ stub VerifyPackageRelativeApplicationId
# @ stub VerifyScripts
@ stdcall VirtualAlloc2(long ptr long long long ptr long)
@ stdcall VirtualAlloc(ptr long long long)
@ stdcall VirtualAllocEx(long ptr long long long)
@ stdcall VirtualAllocExNuma(long ptr long long long long)
...
...
dlls/kernelbase/memory.c
View file @
c55349f6
...
...
@@ -300,6 +300,21 @@ LPVOID WINAPI DECLSPEC_HOTPATCH VirtualAllocEx( HANDLE process, void *addr, SIZE
/***********************************************************************
* VirtualAlloc2 (kernelbase.@)
*/
LPVOID
WINAPI
DECLSPEC_HOTPATCH
VirtualAlloc2
(
HANDLE
process
,
void
*
addr
,
SIZE_T
size
,
DWORD
type
,
DWORD
protect
,
MEM_EXTENDED_PARAMETER
*
parameters
,
ULONG
count
)
{
LPVOID
ret
=
addr
;
if
(
!
set_ntstatus
(
NtAllocateVirtualMemoryEx
(
process
,
&
ret
,
&
size
,
type
,
protect
,
parameters
,
count
)))
return
NULL
;
return
ret
;
}
/***********************************************************************
* VirtualFree (kernelbase.@)
*/
BOOL
WINAPI
DECLSPEC_HOTPATCH
VirtualFree
(
void
*
addr
,
SIZE_T
size
,
DWORD
type
)
...
...
include/winbase.h
View file @
c55349f6
...
...
@@ -2744,6 +2744,7 @@ WINBASEAPI BOOL WINAPI VerifyVersionInfoA(LPOSVERSIONINFOEXA,DWORD,DWORDL
WINBASEAPI
BOOL
WINAPI
VerifyVersionInfoW
(
LPOSVERSIONINFOEXW
,
DWORD
,
DWORDLONG
);
#define VerifyVersionInfo WINELIB_NAME_AW(VerifyVersionInfo)
WINBASEAPI
LPVOID
WINAPI
VirtualAlloc
(
LPVOID
,
SIZE_T
,
DWORD
,
DWORD
);
WINBASEAPI
LPVOID
WINAPI
VirtualAlloc2
(
HANDLE
,
LPVOID
,
SIZE_T
,
DWORD
,
DWORD
,
MEM_EXTENDED_PARAMETER
*
,
ULONG
);
WINBASEAPI
LPVOID
WINAPI
VirtualAllocEx
(
HANDLE
,
LPVOID
,
SIZE_T
,
DWORD
,
DWORD
);
WINBASEAPI
LPVOID
WINAPI
VirtualAllocExNuma
(
HANDLE
,
void
*
,
SIZE_T
,
DWORD
,
DWORD
,
DWORD
);
WINBASEAPI
BOOL
WINAPI
VirtualFree
(
LPVOID
,
SIZE_T
,
DWORD
);
...
...
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