mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
[VIDEOPRT]
- "RegionSize must be zero" doesn't mean literally pass 0 for the region size... svn path=/trunk/; revision=54670
This commit is contained in:
parent
94322ba2cb
commit
9dc72d09dc
|
@ -82,13 +82,14 @@ IntInt10FreeBuffer(
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PKPROCESS CallingProcess = (PKPROCESS)PsGetCurrentProcess();
|
PKPROCESS CallingProcess = (PKPROCESS)PsGetCurrentProcess();
|
||||||
KAPC_STATE ApcState;
|
KAPC_STATE ApcState;
|
||||||
|
SIZE_T Size = 0;
|
||||||
|
|
||||||
TRACE_(VIDEOPRT, "IntInt10FreeBuffer\n");
|
TRACE_(VIDEOPRT, "IntInt10FreeBuffer\n");
|
||||||
INFO_(VIDEOPRT, "- Segment: %x\n", Seg);
|
INFO_(VIDEOPRT, "- Segment: %x\n", Seg);
|
||||||
INFO_(VIDEOPRT, "- Offset: %x\n", Off);
|
INFO_(VIDEOPRT, "- Offset: %x\n", Off);
|
||||||
|
|
||||||
IntAttachToCSRSS(&CallingProcess, &ApcState);
|
IntAttachToCSRSS(&CallingProcess, &ApcState);
|
||||||
Status = ZwFreeVirtualMemory(NtCurrentProcess(), &MemoryAddress, 0,
|
Status = ZwFreeVirtualMemory(NtCurrentProcess(), &MemoryAddress, &Size,
|
||||||
MEM_RELEASE);
|
MEM_RELEASE);
|
||||||
IntDetachFromCSRSS(&CallingProcess, &ApcState);
|
IntDetachFromCSRSS(&CallingProcess, &ApcState);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue