From b62d01462c23676335eb09c0e0b988967d67b387 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek" Date: Thu, 5 Jul 2007 22:13:02 +0000 Subject: Issue 175 - fix permissions on dump file in MinidumpFileWriter. r=mento git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@197 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/windows/handler/exception_handler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/windows') diff --git a/src/client/windows/handler/exception_handler.cc b/src/client/windows/handler/exception_handler.cc index 9a9d5266..4bb67b21 100644 --- a/src/client/windows/handler/exception_handler.cc +++ b/src/client/windows/handler/exception_handler.cc @@ -452,9 +452,9 @@ bool ExceptionHandler::WriteMinidumpWithException( if (minidump_write_dump_) { HANDLE dump_file = CreateFile(next_minidump_path_c_, GENERIC_WRITE, - FILE_SHARE_WRITE, + 0, // no sharing NULL, - CREATE_ALWAYS, + CREATE_NEW, // fail if exists FILE_ATTRIBUTE_NORMAL, NULL); if (dump_file != INVALID_HANDLE_VALUE) { -- cgit v1.2.1