Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Dec 4, 2019
1 parent 963a9da commit 1b80b8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions local_repository_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ func toFullPath(s string) string {
b := p
n, err := syscall.GetLongPathName(&p[0], &b[0], uint32(len(b)))
if err != nil {
println("error", err.Error())
return s
}
if n > uint32(len(b)) {
b = make([]uint16, n)
n, err = syscall.GetLongPathName(&p[0], &b[0], uint32(len(b)))
if err != nil {
println("error", err.Error())
return s
}
}
Expand Down

0 comments on commit 1b80b8d

Please sign in to comment.