From cba50726e41670d9415d4b7ffd5d555da65d4909 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Wed, 23 Jan 2008 17:34:06 +0000 Subject: [PATCH] don't try to delete the bitmap object in case of failure as it doesn't belong to the calling process anymore svn path=/trunk/; revision=31962 --- reactos/dll/win32/user32/misc/desktop.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/reactos/dll/win32/user32/misc/desktop.c b/reactos/dll/win32/user32/misc/desktop.c index fa60ecfb7b1..400cc618685 100644 --- a/reactos/dll/win32/user32/misc/desktop.c +++ b/reactos/dll/win32/user32/misc/desktop.c @@ -413,11 +413,7 @@ SystemParametersInfoW(UINT uiAction, /* 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)