Commit a8c4da99 authored by Alex Brainman's avatar Alex Brainman

syscall: fix windows build

R=golang-dev
CC=golang-dev
https://golang.org/cl/2713043
parent 7812b796
......@@ -303,6 +303,9 @@ func getStdHandle(h int32) (fd int) {
}
func Stat(path string, stat *Stat_t) (errno int) {
if len(path) == 0 {
return ERROR_PATH_NOT_FOUND
}
// Remove trailing slash.
if path[len(path)-1] == '/' || path[len(path)-1] == '\\' {
// Check if we're given root directory ("\" or "c:\").
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment