diff --git a/reactos/dll/win32/kernel32/mem/section.c b/reactos/dll/win32/kernel32/mem/section.c index c8f0465149b..142d9287fdf 100644 --- a/reactos/dll/win32/kernel32/mem/section.c +++ b/reactos/dll/win32/kernel32/mem/section.c @@ -219,7 +219,6 @@ MapViewOfFileEx(HANDLE hFileMappingObject, return NULL; } - SetLastError(ERROR_SUCCESS); /* Return the base */ return ViewBase; } @@ -262,7 +261,6 @@ UnmapViewOfFile(LPCVOID lpBaseAddress) return FALSE; } - SetLastError(ERROR_SUCCESS); /* Otherwise, return sucess */ return TRUE; } @@ -385,7 +383,6 @@ FlushViewOfFile(LPCVOID lpBaseAddress, return FALSE; } - SetLastError(ERROR_SUCCESS); /* Return success */ return TRUE; }