Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
Description
reactos-bootcd-0.4.16-dev-281-ge3c859e-x86-gcc-lin-dbg
- Craete a bitmap (green rectangle in my case)
- Use it as Background, centered

- Press OK
- Delete file
- Open desk.cpl again
shows an "empty" line for the deleted file
"grey" preview

Guilty code:
- in dll/cpl/desk/background.c / AddListViewItems
SHGetFileInfoW is used but return value is not checked: https://git.reactos.org/?p=reactos.git;a=blob;f=dll/cpl/desk/background.c;h=b13729c1e9c8e55ababd3daa75f80b8c0386190e;hb=fc55d38e0ed6f0b606a3ed0f6f71e15ec9c800ca#l390- if returns 0 then should call RegCloseKey(regKey); and jump to the /* Add all the images in the C:\ReactOS directory. */ part of code