mirror of
https://github.com/golang/go.git
synced 2025-05-23 16:31:27 +00:00
cmd/dist: fix crash on windows
currently 'dist install' always crashes on windows R=golang-dev, r CC=golang-dev https://golang.org/cl/11919043
This commit is contained in:
parent
91d35ad1b8
commit
d5c7ef6216
2
src/cmd/dist/windows.c
vendored
2
src/cmd/dist/windows.c
vendored
@ -465,7 +465,7 @@ xrealwd(Buf *b, char *path)
|
|||||||
torune(&rnew, path);
|
torune(&rnew, path);
|
||||||
if(!SetCurrentDirectoryW(rnew))
|
if(!SetCurrentDirectoryW(rnew))
|
||||||
fatal("chdir %s: %s", path, errstr());
|
fatal("chdir %s: %s", path, errstr());
|
||||||
free(rnew);
|
xfree(rnew);
|
||||||
xgetwd(b);
|
xgetwd(b);
|
||||||
if(!SetCurrentDirectoryW(old)) {
|
if(!SetCurrentDirectoryW(old)) {
|
||||||
breset(b);
|
breset(b);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user