+2005-12-19 Corinna Vinschen <corinna@vinschen.de>
+
+ * mmap.cc (fhandler_dev_zero::mmap): Call VirtualFree(MEM_RELEASE)
+ with zero length parameter, otherwise it fails.
+ (fhandler_dev_zero::munmap): Ditto.
+
2005-12-18 Christopher Faylor <cgf@timesys.com>
* fhandler.h (fhandler_console::invisible_console): Declare new
__seterrno ();
else
{
- VirtualFree (base, len, MEM_RELEASE);
+ VirtualFree (base, 0, MEM_RELEASE);
set_errno (EINVAL);
debug_printf ("VirtualAlloc: address shift with MAP_FIXED given");
}
fhandler_dev_zero::munmap (HANDLE h, caddr_t addr, size_t len)
{
if (h == (HANDLE) 1) /* See fhandler_dev_zero::mmap. */
- VirtualFree (addr, len, MEM_RELEASE);
+ VirtualFree (addr, 0, MEM_RELEASE);
else
{
UnmapViewOfFile (addr);