Skip to content

Commit

Permalink
fix: code
Browse files Browse the repository at this point in the history
  • Loading branch information
fukata committed Mar 21, 2022
1 parent 6f7d552 commit b931d55
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -70,8 +70,12 @@ void _handleChangeWallpaper() {
log("result=$result, monitorIdPtr=${monitorIdPtr}");
log("Change wallpaper. i=$i");
desktopWallpaper.SetWallpaper(monitorIdPtr.value, wallpaperFilePathPtr);
result = desktopWallpaper.SetWallpaper(monitorIdPtr.value, wallpaperFilePathPtr);
if (result != S_OK) {
free(monitorIdPtr);
throw WindowsException(result);
}
free(monitorIdPtr);
}
Expand Down

0 comments on commit b931d55

Please sign in to comment.