Author: mjmartin
Date: Fri Dec 26 09:24:54 2008
New Revision: 38355
URL:
http://svn.reactos.org/svn/reactos?rev=38355&view=rev
Log:
- Add missing assignments to CallingProcess variable. Part 1 of ? fixes for bug 2286.
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] Fri Dec 26 09:24:54 2008
@@ -34,7 +34,7 @@
{
PVOID MemoryAddress;
NTSTATUS Status;
- PKPROCESS CallingProcess;
+ PKPROCESS CallingProcess = (PKPROCESS)PsGetCurrentProcess();
KAPC_STATE ApcState;
TRACE_(VIDEOPRT, "IntInt10AllocateBuffer\n");
@@ -81,7 +81,7 @@
{
PVOID MemoryAddress = (PVOID)((Seg << 4) | Off);
NTSTATUS Status;
- PKPROCESS CallingProcess;
+ PKPROCESS CallingProcess = (PKPROCESS)PsGetCurrentProcess();
KAPC_STATE ApcState;
TRACE_(VIDEOPRT, "IntInt10FreeBuffer\n");
@@ -104,7 +104,7 @@
OUT PVOID Buffer,
IN ULONG Length)
{
- PKPROCESS CallingProcess;
+ PKPROCESS CallingProcess = (PKPROCESS)PsGetCurrentProcess();
KAPC_STATE ApcState;
TRACE_(VIDEOPRT, "IntInt10ReadMemory\n");
@@ -128,7 +128,7 @@
IN PVOID Buffer,
IN ULONG Length)
{
- PKPROCESS CallingProcess;
+ PKPROCESS CallingProcess = (PKPROCESS)PsGetCurrentProcess();
KAPC_STATE ApcState;
TRACE_(VIDEOPRT, "IntInt10WriteMemory\n");
@@ -152,7 +152,7 @@
{
CONTEXT BiosContext;
NTSTATUS Status;
- PKPROCESS CallingProcess;
+ PKPROCESS CallingProcess = (PKPROCESS)PsGetCurrentProcess();
KAPC_STATE ApcState;
/* Attach to CSRSS */
@@ -204,7 +204,7 @@
{
KV86M_REGISTERS Regs;
NTSTATUS Status;
- PKPROCESS CallingProcess;
+ PKPROCESS CallingProcess = (PKPROCESS)PsGetCurrentProcess();
KAPC_STATE ApcState;
TRACE_(VIDEOPRT, "VideoPortInt10\n");