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
757f9e97
Commit
757f9e97
authored
May 05, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Implement UnmapViewOfFile2().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d63db812
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
kernelbase.spec
dlls/kernelbase/kernelbase.spec
+1
-0
memory.c
dlls/kernelbase/memory.c
+9
-0
winbase.h
include/winbase.h
+1
-0
No files found.
dlls/kernelbase/kernelbase.spec
View file @
757f9e97
...
...
@@ -1653,6 +1653,7 @@
@ stdcall UnlockFile(long long long long long)
@ stdcall UnlockFileEx(long long long long ptr)
@ stdcall UnmapViewOfFile(ptr)
@ stdcall UnmapViewOfFile2(long ptr long)
# @ stub UnmapViewOfFileEx
# @ stub UnregisterBadMemoryNotification
# @ stub UnregisterGPNotificationInternal
...
...
dlls/kernelbase/memory.c
View file @
757f9e97
...
...
@@ -304,6 +304,15 @@ BOOL WINAPI DECLSPEC_HOTPATCH UnmapViewOfFile( const void *addr )
/***********************************************************************
* UnmapViewOfFile2 (kernelbase.@)
*/
BOOL
WINAPI
DECLSPEC_HOTPATCH
UnmapViewOfFile2
(
HANDLE
process
,
void
*
addr
,
ULONG
flags
)
{
return
set_ntstatus
(
NtUnmapViewOfSectionEx
(
process
,
addr
,
flags
));
}
/***********************************************************************
* VirtualAlloc (kernelbase.@)
*/
LPVOID
WINAPI
DECLSPEC_HOTPATCH
VirtualAlloc
(
void
*
addr
,
SIZE_T
size
,
DWORD
type
,
DWORD
protect
)
...
...
include/winbase.h
View file @
757f9e97
...
...
@@ -2741,6 +2741,7 @@ WINBASEAPI BOOL WINAPI UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED
#define UnlockResource(handle) ((handle), 0)
#define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
WINBASEAPI
BOOL
WINAPI
UnmapViewOfFile
(
LPCVOID
);
WINBASEAPI
BOOL
WINAPI
UnmapViewOfFile2
(
HANDLE
,
PVOID
,
ULONG
);
WINBASEAPI
BOOL
WINAPI
UmsThreadYield
(
void
*
);
WINBASEAPI
HRESULT
WINAPI
UnregisterApplicationRestart
(
void
);
WINBASEAPI
BOOL
WINAPI
UnregisterWait
(
HANDLE
);
...
...
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