Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: app/win_util_path.cc

Issue 536028: Split win_util.cc - we need the code in ConvertToLongPath in the 64-bit Windows build (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « app/win_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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.
4
5 #include "app/win_util.h"
6
7 namespace win_util {
8
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;
17 }
18
19 return false;
20 }
21
22 } // namespace win_util
OLDNEW
« no previous file with comments | « app/win_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698