mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 01:52:06 +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 */
|
/* Set the wallpaper bitmap */
|
||||||
if(!NtUserSystemParametersInfo(SPI_SETDESKWALLPAPER, 0, &hNewWallpaper, fWinIni & SPIF_SENDCHANGE))
|
if(!NtUserSystemParametersInfo(SPI_SETDESKWALLPAPER, 0, &hNewWallpaper, fWinIni & SPIF_SENDCHANGE))
|
||||||
{
|
|
||||||
if(hNewWallpaper != NULL)
|
|
||||||
DeleteObject(hNewWallpaper);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
|
||||||
/* Do not use the bitmap handle anymore, it doesn't belong to our process anymore! */
|
/* Do not use the bitmap handle anymore, it doesn't belong to our process anymore! */
|
||||||
Ret = TRUE;
|
Ret = TRUE;
|
||||||
if(fWinIni & SPIF_UPDATEINIFILE)
|
if(fWinIni & SPIF_UPDATEINIFILE)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue