Author: cgutman
Date: Sat Dec 17 09:18:24 2011
New Revision: 54670
URL:
http://svn.reactos.org/svn/reactos?rev=54670&view=rev
Log:
[VIDEOPRT]
- "RegionSize must be zero" doesn't mean literally pass 0 for the region
size...
Modified:
trunk/reactos/drivers/video/videoprt/int10.c
Modified: trunk/reactos/drivers/video/videoprt/int10.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/int…
==============================================================================
--- trunk/reactos/drivers/video/videoprt/int10.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/videoprt/int10.c [iso-8859-1] Sat Dec 17 09:18:24 2011
@@ -82,13 +82,14 @@
NTSTATUS Status;
PKPROCESS CallingProcess = (PKPROCESS)PsGetCurrentProcess();
KAPC_STATE ApcState;
+ SIZE_T Size = 0;
TRACE_(VIDEOPRT, "IntInt10FreeBuffer\n");
INFO_(VIDEOPRT, "- Segment: %x\n", Seg);
INFO_(VIDEOPRT, "- Offset: %x\n", Off);
IntAttachToCSRSS(&CallingProcess, &ApcState);
- Status = ZwFreeVirtualMemory(NtCurrentProcess(), &MemoryAddress, 0,
+ Status = ZwFreeVirtualMemory(NtCurrentProcess(), &MemoryAddress, &Size,
MEM_RELEASE);
IntDetachFromCSRSS(&CallingProcess, &ApcState);