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

Unified Diff: tools/generate_dump.cc

Issue 1337133002: win: Fix OpenProcess(PROCESS_ALL_ACCESS, ...) on XP (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | util/util.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/generate_dump.cc
diff --git a/tools/generate_dump.cc b/tools/generate_dump.cc
index c68d214ac99d146a2e6e22d5137f30a83726792d..e3679749ea93812ab811ae3191abae54e9d2d564 100644
--- a/tools/generate_dump.cc
+++ b/tools/generate_dump.cc
@@ -42,6 +42,7 @@
#include "base/strings/utf_string_conversions.h"
#include "snapshot/win/process_snapshot_win.h"
#include "util/win/scoped_process_suspend.h"
+#include "util/win/xp_compat.h"
#endif // OS_MACOSX
namespace crashpad {
@@ -151,7 +152,7 @@ int GenerateDumpMain(int argc, char* argv[]) {
}
#elif defined(OS_WIN)
ScopedKernelHANDLE process(
- OpenProcess(PROCESS_ALL_ACCESS, false, options.pid));
+ OpenProcess(kXPProcessAllAccess, false, options.pid));
if (!process.is_valid()) {
LOG(ERROR) << "could not open process " << options.pid;
return EXIT_FAILURE;
« no previous file with comments | « no previous file | util/util.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698