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
This commit is contained in:
Christoph von Wittich 2008-01-23 17:34:06 +00:00
parent 7fd698ea9a
commit cba50726e4

View file

@ -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)