From 18a0a2a8c7cafa37c1caee040e83d13187747dd1 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 13 Nov 2011 18:08:56 -0300 Subject: [PATCH] Overwrite memory dump file if it already exists (win32 impl). --- src/base/memory_dump_win32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/memory_dump_win32.h b/src/base/memory_dump_win32.h index d5c2b8101..50878b6f9 100644 --- a/src/base/memory_dump_win32.h +++ b/src/base/memory_dump_win32.h @@ -41,7 +41,7 @@ private: MemoryDumpFile() { m_handle = ::CreateFile(memoryDumpFile.c_str(), GENERIC_WRITE, 0, NULL, - CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL); + CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); } ~MemoryDumpFile() { ::CloseHandle(m_handle);