mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user