PADAPTER_OBJECT AdapterObject)
{
UNIMPLEMENTED;
+
+ return 0;
}
KdPortDisableInterrupts()
{
UNIMPLEMENTED;
+
+ return FALSE;
}
KdPortEnableInterrupts()
{
UNIMPLEMENTED;
+
+ return FALSE;
}
PKSPIN_LOCK SpinLock)
{
UNIMPLEMENTED;
+
+ return 0;
}
* For supported compilers we use inline assembler. For the others,
* portable plain C.
*/
-VOID STDCALL
+VOID STDCALL __attribute__((noinline))
__KeStallExecutionProcessor(ULONG Loops)
{
if (!Loops)
-/* $Id:$
+/* $Id$
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
)
{
UNIMPLEMENTED;
+
+ return 0;
}
/*
)
{
UNIMPLEMENTED;
+
+ return 0;
}
RECTL DestRect;
POINTL SrcPoint;
SURFOBJ *ColorSurf;
- SURFOBJ *MaskSurf;
+ SURFOBJ *MaskSurf = NULL;
DestRect.left = max(pt.x, 0);
DestRect.top = max(pt.y, 0);
SrcPoint.x = max(-pt.x, 0);
SrcPoint.y = max(-pt.y, 0);
- MaskSurf = EngLockSurface(pgp->MaskSurface);
+ if (pgp->MaskSurface)
+ MaskSurf = EngLockSurface(pgp->MaskSurface);
+
if (MaskSurf != NULL)
{
if (pgp->ColorSurface != NULL)
NtUserAcquireOrReleaseInputOwnership(FALSE);
+ /* Setup the cursor */
+ IntLoadDefaultCursors();
+
return TRUE;
}
SurfaceRect.bottom = SurfObj->sizlBitmap.cy;
/* FIXME - why does EngEraseSurface() sometimes crash?
EngEraseSurface(SurfObj, &SurfaceRect, 0); */
+
+ /* Put the pointer in the center of the screen */
+ GDIDEV(SurfObj)->Pointer.Pos.x = (SurfaceRect.right - SurfaceRect.left) / 2;
+ GDIDEV(SurfObj)->Pointer.Pos.y = (SurfaceRect.bottom - SurfaceRect.top) / 2;
+
EngUnlockSurface(SurfObj);
IntShowDesktop(IntGetActiveDesktop(), SurfSize.cx, SurfSize.cy);
break;