mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
fixes crash in DrvSetPointerShape()
svn path=/trunk/; revision=6607
This commit is contained in:
parent
5b827d7354
commit
7f64c6fa81
1 changed files with 7 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: pointer.c,v 1.15 2003/09/10 07:24:31 gvg Exp $
|
||||
/* $Id: pointer.c,v 1.16 2003/11/10 19:42:57 weiden Exp $
|
||||
*
|
||||
* PROJECT: ReactOS VGA16 display driver
|
||||
* FILE: drivers/dd/vga/display/objects/pointer.c
|
||||
|
@ -219,6 +219,12 @@ DrvSetPointerShape(PSURFOBJ pso,
|
|||
ULONG NewWidth, NewHeight;
|
||||
PUCHAR Src, Dest;
|
||||
ULONG i, j;
|
||||
|
||||
if(!psoMask)
|
||||
{
|
||||
VGADDI_HideCursor(ppdev);
|
||||
return SPS_ACCEPT_EXCLUDE;
|
||||
}
|
||||
|
||||
NewWidth = psoMask->lDelta << 3;
|
||||
NewHeight = (psoMask->cjBits / psoMask->lDelta) / 2;
|
||||
|
|
Loading…
Reference in a new issue