Overwrite memory dump file if it already exists (win32 impl).

This commit is contained in:
David Capello 2011-11-13 18:08:56 -03:00
parent e530f977df
commit 18a0a2a8c7

View File

@ -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);