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

Side by Side Diff: experimental/windows_debugger/debugger/base/debug_system.cc

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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
OLDNEW
(Empty)
1 #include "debug_system.h"
2 #include <windows.h>
3
4 namespace debug {
5 std::string System::GetLastErrorDescription(int error_code) {
6 if (0 == error_code)
7 error_code = ::GetLastError();
8
9 char buff[ 2000 ] = { '?', 0 };
10 ::FormatMessageA(FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_FROM_SYS TEM,
11 0,
12 error_code,
13 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
14 buff,
15 sizeof(buff),
16 0);
17
18 return std::string(buff);
19 }
20 } // namespace debug
OLDNEW
« no previous file with comments | « experimental/windows_debugger/debugger/base/debug_system.h ('k') | experimental/windows_debugger/debugger/base/debug_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698