- Fix broken UnmapViewOfFile definition

svn path=/trunk/; revision=35027
This commit is contained in:
Stefan Ginsberg 2008-08-02 09:29:16 +00:00
parent de7b0d6e38
commit f7db1083a4
2 changed files with 3 additions and 3 deletions

View file

@ -240,12 +240,12 @@ MapViewOfFile(HANDLE hFileMappingObject,
*/
BOOL
NTAPI
UnmapViewOfFile(LPVOID lpBaseAddress)
UnmapViewOfFile(LPCVOID lpBaseAddress)
{
NTSTATUS Status;
/* Unmap the section */
Status = NtUnmapViewOfSection(NtCurrentProcess(), lpBaseAddress);
Status = NtUnmapViewOfSection(NtCurrentProcess(), (PVOID)lpBaseAddress);
if (!NT_SUCCESS(Status))
{
/* We failed */

View file

@ -2046,7 +2046,7 @@ BOOL WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
BOOL WINAPI UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED);
#define UnlockResource(h) (h)
#define UnlockSegment(w) GlobalUnfix((HANDLE)(w)) /* Obsolete: Has no effect. */
BOOL WINAPI UnmapViewOfFile(PVOID);
BOOL WINAPI UnmapViewOfFile(LPCVOID);
#if (_WIN32_WINNT >= 0x0500)
BOOL WINAPI UnregisterWait(HANDLE);
BOOL WINAPI UnregisterWaitEx(HANDLE,HANDLE);