mirror of
https://github.com/reactos/reactos.git
synced 2024-08-29 22:58:34 +00:00
small bugfix
svn path=/trunk/; revision=6744
This commit is contained in:
parent
8366cbb31c
commit
72d71d1055
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: cursoricon.c,v 1.23 2003/11/21 21:12:09 navaraf Exp $ */
|
/* $Id: cursoricon.c,v 1.24 2003/11/21 22:46:27 weiden Exp $ */
|
||||||
|
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
|
@ -106,6 +106,9 @@ IntSetCursor(PWINSTATION_OBJECT WinStaObject, PCURICON_OBJECT NewCursor, BOOL Fo
|
||||||
|
|
||||||
/* FIXME use the desktop's HDC instead of using ScreenDeviceContext */
|
/* FIXME use the desktop's HDC instead of using ScreenDeviceContext */
|
||||||
dc = DC_LockDc(ScreenDeviceContext);
|
dc = DC_LockDc(ScreenDeviceContext);
|
||||||
|
if(!dc)
|
||||||
|
goto done;
|
||||||
|
|
||||||
SurfObj = (PSURFOBJ)AccessUserObject((ULONG) dc->Surface);
|
SurfObj = (PSURFOBJ)AccessUserObject((ULONG) dc->Surface);
|
||||||
SurfGDI = (PSURFGDI)AccessInternalObject((ULONG) dc->Surface);
|
SurfGDI = (PSURFGDI)AccessInternalObject((ULONG) dc->Surface);
|
||||||
DevInfo = dc->DevInfo;
|
DevInfo = dc->DevInfo;
|
||||||
|
|
Loading…
Reference in a new issue