[ros-diffs] [cwittich] 31962: don't try to delete the bitmap object in case of failure as it doesn't belong to the calling process anymore

cwittich at svn.reactos.org cwittich at svn.reactos.org
Wed Jan 23 18:34:06 CET 2008


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/desktop.c?rev=31962&r1=31961&r2=31962&view=diff
==============================================================================
--- 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)




More information about the Ros-diffs mailing list