| Index: base/files/file_util_win.cc
|
| diff --git a/base/files/file_util_win.cc b/base/files/file_util_win.cc
|
| index 294726a8279089098c812fff6c35738d6dd65660..898b99b1d824de39621ce435d913639b61aa6a42 100644
|
| --- a/base/files/file_util_win.cc
|
| +++ b/base/files/file_util_win.cc
|
| @@ -283,6 +283,9 @@ bool GetTempDir(FilePath* path) {
|
| DWORD path_len = ::GetTempPath(MAX_PATH, temp_path);
|
| if (path_len >= MAX_PATH || path_len <= 0)
|
| return false;
|
| + DWORD long_path_len = ::GetLongPathName(temp_path, temp_path, MAX_PATH);
|
| + if (long_path_len >= MAX_PATH || long_path_len <= 0)
|
| + return false;
|
| // TODO(evanm): the old behavior of this function was to always strip the
|
| // trailing slash. We duplicate this here, but it shouldn't be necessary
|
| // when everyone is using the appropriate FilePath APIs.
|
|
|