Skip to content

Commit 8edac21

Browse files
0x5bfahez2010
andauthored
Update src/Files.App/Services/Windows/WindowsWallpaperService.cs
Co-authored-by: Steve <[email protected]> Signed-off-by: 0x5BFA <[email protected]>
1 parent f72ea3c commit 8edac21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Services/Windows/WindowsWallpaperService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public unsafe void SetDesktopSlideshow(string[] aszPaths)
4545
{
4646
// Instantiate IDesktopWallpaper
4747
using ComPtr<IDesktopWallpaper> pDesktopWallpaper = default;
48-
HRESULT hr = pDesktopWallpaper.CoCreateInstance(CLSID.CLSID_DesktopWallpaper);
48+
HRESULT hr = pDesktopWallpaper.CoCreateInstance(CLSID.CLSID_DesktopWallpaper).ThrowOnFailure();
4949

5050
uint dwCount = (uint)aszPaths.Length;
5151
ITEMIDLIST** ppItemIdList = stackalloc ITEMIDLIST*[aszPaths.Length];

0 commit comments

Comments
 (0)