| Index: runtime/bin/file_win.cc
|
| diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc
|
| index 9f6bae8c171f5a1aeebf22a4dd17d8e77f901302..73d195caf14c939ab8712b4e07fc4b44e69c8265 100644
|
| --- a/runtime/bin/file_win.cc
|
| +++ b/runtime/bin/file_win.cc
|
| @@ -209,7 +209,7 @@ char* File::GetCanonicalPath(const char* pathname) {
|
| static_cast<wchar_t*>(malloc(required_size * sizeof(wchar_t)));
|
| int written = GetFullPathNameW(system_name, required_size, path, NULL);
|
| free(const_cast<wchar_t*>(system_name));
|
| - ASSERT(written == (required_size - 1));
|
| + ASSERT(written <= (required_size - 1));
|
| char* result = StringUtils::WideToUtf8(path);
|
| free(path);
|
| return result;
|
|
|