Author: cwittich Date: Wed Jan 23 20:34:06 2008 New Revision: 31962
URL: http://svn.reactos.org/svn/reactos?rev=31962&view=rev Log: don't try to delete the bitmap object in case of failure as it doesn't belong to the calling process anymore
Modified: trunk/reactos/dll/win32/user32/misc/desktop.c
Modified: trunk/reactos/dll/win32/user32/misc/desktop.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/deskt... ============================================================================== --- trunk/reactos/dll/win32/user32/misc/desktop.c (original) +++ trunk/reactos/dll/win32/user32/misc/desktop.c Wed Jan 23 20:34:06 2008 @@ -413,11 +413,7 @@
/* Set the wallpaper bitmap */ if(!NtUserSystemParametersInfo(SPI_SETDESKWALLPAPER, 0, &hNewWallpaper, fWinIni & SPIF_SENDCHANGE)) - { - if(hNewWallpaper != NULL) - DeleteObject(hNewWallpaper); return FALSE; - } /* Do not use the bitmap handle anymore, it doesn't belong to our process anymore! */ Ret = TRUE; if(fWinIni & SPIF_UPDATEINIFILE)