mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
don't allow destroying cursors that are currently in use
svn path=/trunk/; revision=6954
This commit is contained in:
parent
a9272c95c1
commit
cf7329bc4c
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: cursoricon.c,v 1.34 2003/12/10 22:09:56 weiden Exp $ */
|
||||
/* $Id: cursoricon.c,v 1.35 2003/12/10 22:47:11 weiden Exp $ */
|
||||
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
|
||||
|
@ -306,6 +306,12 @@ IntDestroyCurIconObject(PWINSTATION_OBJECT WinStaObject, HANDLE Handle)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if(WinStaObject->SystemCursor.CurrentCursorObject == Object)
|
||||
{
|
||||
ObmDereferenceObject(Object);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bmpMask = Object->IconInfo.hbmMask;
|
||||
bmpColor = Object->IconInfo.hbmColor;
|
||||
|
||||
|
|
Loading…
Reference in a new issue