Factor out some SSL specific configs, and add another reference to /var/run to
[chromium-blink-merge.git] / app / win_util_path.cc
blob5717f4ea843dcb5db7a666d21818eb0423cf5849
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"
7 namespace win_util {
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,
13 MAX_PATH);
14 if (return_value != 0 && return_value < MAX_PATH) {
15 *long_path = long_path_buf;
16 return true;
19 return false;
22 } // namespace win_util