Chromium Code Reviews| Index: runtime/bin/file_win.cc |
| diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc |
| index 9f6bae8c171f5a1aeebf22a4dd17d8e77f901302..ad88d03fb196c429f64a6a7b95fa475f6359622e 100644 |
| --- a/runtime/bin/file_win.cc |
| +++ b/runtime/bin/file_win.cc |
| @@ -209,7 +209,6 @@ 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)); |
|
Vyacheslav Egorov (Google)
2013/02/11 13:42:12
you can assert written < required_size
Anders Johnsen
2013/06/11 12:23:37
Good idea!
|
| char* result = StringUtils::WideToUtf8(path); |
| free(path); |
| return result; |