Skip to content

Commit

Permalink
Fix windows disk checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffail committed May 17, 2017
1 parent 1c061ab commit ac358b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/disk/check_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ func TotalRemaining(path string) uint64 {
c := h.MustFindProc("GetDiskFreeSpaceExW")

c.Call(
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(volumePath))),
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(path))),
uintptr(unsafe.Pointer(&freeBytes)),
uintptr(unsafe.Pointer(&totalBytes)),
uintptr(unsafe.Pointer(&availableBytes)))

return freeBytes
return uint64(freeBytes)
}

0 comments on commit ac358b8

Please sign in to comment.