mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:53:07 +00:00
- Fix broken UnmapViewOfFile definition
svn path=/trunk/; revision=35027
This commit is contained in:
parent
de7b0d6e38
commit
f7db1083a4
2 changed files with 3 additions and 3 deletions
|
@ -240,12 +240,12 @@ MapViewOfFile(HANDLE hFileMappingObject,
|
||||||
*/
|
*/
|
||||||
BOOL
|
BOOL
|
||||||
NTAPI
|
NTAPI
|
||||||
UnmapViewOfFile(LPVOID lpBaseAddress)
|
UnmapViewOfFile(LPCVOID lpBaseAddress)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
/* Unmap the section */
|
/* Unmap the section */
|
||||||
Status = NtUnmapViewOfSection(NtCurrentProcess(), lpBaseAddress);
|
Status = NtUnmapViewOfSection(NtCurrentProcess(), (PVOID)lpBaseAddress);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* We failed */
|
/* We failed */
|
||||||
|
|
|
@ -2046,7 +2046,7 @@ BOOL WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
|
||||||
BOOL WINAPI UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED);
|
BOOL WINAPI UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED);
|
||||||
#define UnlockResource(h) (h)
|
#define UnlockResource(h) (h)
|
||||||
#define UnlockSegment(w) GlobalUnfix((HANDLE)(w)) /* Obsolete: Has no effect. */
|
#define UnlockSegment(w) GlobalUnfix((HANDLE)(w)) /* Obsolete: Has no effect. */
|
||||||
BOOL WINAPI UnmapViewOfFile(PVOID);
|
BOOL WINAPI UnmapViewOfFile(LPCVOID);
|
||||||
#if (_WIN32_WINNT >= 0x0500)
|
#if (_WIN32_WINNT >= 0x0500)
|
||||||
BOOL WINAPI UnregisterWait(HANDLE);
|
BOOL WINAPI UnregisterWait(HANDLE);
|
||||||
BOOL WINAPI UnregisterWaitEx(HANDLE,HANDLE);
|
BOOL WINAPI UnregisterWaitEx(HANDLE,HANDLE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue