mirror of https://github.com/golang/go.git
Fix the problem that the service account cannot obtain current information
This commit is contained in:
parent
610d47a584
commit
12cafc07ac
|
|
@ -368,6 +368,9 @@ func (t Token) GetUserProfileDirectory() (string, error) {
|
|||
if e == nil {
|
||||
return UTF16ToString(b), nil
|
||||
}
|
||||
if e == ERROR_FILE_NOT_FOUND {
|
||||
return "", nil
|
||||
}
|
||||
if e != ERROR_INSUFFICIENT_BUFFER {
|
||||
return "", e
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue