mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 10:53:42 +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:
parent
7fd698ea9a
commit
cba50726e4
1 changed files with 0 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue