Skip to content

Commit

Permalink
Merge pull request #171 from gcash/TS_fix_windows_disk_check
Browse files Browse the repository at this point in the history
Ts fix windows disk check
  • Loading branch information
cpacia committed Dec 19, 2018
2 parents 6d755a6 + 2bb152f commit 5005fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/ffldb/disk_windows.go
Expand Up @@ -19,7 +19,7 @@ func getAvailableDiskSpace(path string) (uint64, error) {
var freeBytes, totalBytes, availBytes int64
_, _, err := c.Call(uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(path))),
uintptr(unsafe.Pointer(&freeBytes)), uintptr(unsafe.Pointer(&totalBytes)), uintptr(unsafe.Pointer(&availBytes)))
if err != nil {
if err != nil && err.(syscall.Errno) != 0 {
return 0, err
}

Expand Down

0 comments on commit 5005fd2

Please sign in to comment.