aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordoshimun <doshimun@4c0a9323-5329-0410-9bdc-e9ce6186880e>2008-05-15 04:12:34 +0000
committerdoshimun <doshimun@4c0a9323-5329-0410-9bdc-e9ce6186880e>2008-05-15 04:12:34 +0000
commit72bafd378d836d9a1fe81a1f26c91d51b2a7892b (patch)
treef5a9ff8820404a9c1223c2d29e20f8f53c76bc4e /src
parent64-bit processor can't handle 32-bit ppc minidumps due to struct padding (diff)
downloadbreakpad-72bafd378d836d9a1fe81a1f26c91d51b2a7892b.tar.xz
Microsoft broke PROCESS_ALL_ACCESS when we build with WINVER=0x600. See http://nsylvain.blogspot.com/2008/01/winverwin32winnt-mayhem.html for
details (second half of the post). Changing PROCESS_ALL_ACCESS to GENERIC_ALL in ClientInfo class when opening the client process handle on the OOP server side. A minor change to pipe name in the test app also. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@274 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src')
-rw-r--r--src/client/windows/crash_generation/client_info.cc2
-rw-r--r--src/client/windows/tests/crash_generation_app/crash_generation_app.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/windows/crash_generation/client_info.cc b/src/client/windows/crash_generation/client_info.cc
index 6d602744..7b90561d 100644
--- a/src/client/windows/crash_generation/client_info.cc
+++ b/src/client/windows/crash_generation/client_info.cc
@@ -54,7 +54,7 @@ ClientInfo::ClientInfo(CrashGenerationServer* crash_server,
}
bool ClientInfo::Initialize() {
- process_handle_ = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid_);
+ process_handle_ = OpenProcess(GENERIC_ALL, FALSE, pid_);
if (!process_handle_) {
return false;
}
diff --git a/src/client/windows/tests/crash_generation_app/crash_generation_app.cc b/src/client/windows/tests/crash_generation_app/crash_generation_app.cc
index 7ed1021b..a3c560bd 100644
--- a/src/client/windows/tests/crash_generation_app/crash_generation_app.cc
+++ b/src/client/windows/tests/crash_generation_app/crash_generation_app.cc
@@ -35,7 +35,7 @@
namespace google_breakpad {
const int kMaxLoadString = 100;
-const wchar_t kPipeName[] = L"\\\\.\\pipe\\GoogleCrashServices\\S-1-5-21-39260824-743453154-142223018-195347";
+const wchar_t kPipeName[] = L"\\\\.\\pipe\\BreakpadCrashServices\\TestServer";
const DWORD kEditBoxStyles = WS_CHILD |
WS_VISIBLE |