Skip to content

Commit

Permalink
Fix stupid windows bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
avinashbot committed Feb 5, 2016
1 parent ed81591 commit 8db675b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions background/background_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func Set(img image.Image) error {
if err != nil {
return err
}
imgPath := filepath.Join(usr.HomeDir, "AppData", "Roaming", "Himawari")
imgPath := filepath.Join(usr.HomeDir, "AppData", "Roaming", "Himawari", "background.png")

// Create the file.
if err := createFile(img, imgPath); err != nil {
Expand All @@ -36,7 +36,7 @@ func Set(img image.Image) error {
proc.Call(
spiSETDESKWALLPAPER,
0,
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(path))),
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(imgPath))),
spifUPDATEINIFILE,
)
return nil
Expand Down

0 comments on commit 8db675b

Please sign in to comment.