1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "app/win_util.h"
9 bool ConvertToLongPath(const std::wstring
& short_path
,
10 std::wstring
* long_path
) {
11 wchar_t long_path_buf
[MAX_PATH
];
12 DWORD return_value
= GetLongPathName(short_path
.c_str(), long_path_buf
,
14 if (return_value
!= 0 && return_value
< MAX_PATH
) {
15 *long_path
= long_path_buf
;
22 } // namespace win_util