Author: cfinck
Date: Tue Aug 14 20:33:54 2012
New Revision: 57077
URL:
http://svn.reactos.org/svn/reactos?rev=57077&view=rev
Log:
[ROSAUTOTEST]
Use FILE_FLAG_NO_BUFFERING and FILE_FLAG_WRITE_THROUGH in the hope that they prevent
journal changes from getting lost.
Modified:
trunk/rostests/rosautotest/CJournaledTestList.cpp
Modified: trunk/rostests/rosautotest/CJournaledTestList.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/rosautotest/CJournaledTes…
==============================================================================
--- trunk/rostests/rosautotest/CJournaledTestList.cpp [iso-8859-1] (original)
+++ trunk/rostests/rosautotest/CJournaledTestList.cpp [iso-8859-1] Tue Aug 14 20:33:54
2012
@@ -64,7 +64,15 @@
void
CJournaledTestList::OpenJournal(DWORD DesiredAccess, bool CreateNew)
{
- m_hJournal = CreateFileW(m_JournalFile.c_str(), DesiredAccess, 0, NULL, (CreateNew ?
CREATE_ALWAYS : OPEN_EXISTING), FILE_ATTRIBUTE_NORMAL, NULL);
+ m_hJournal = CreateFileW(
+ m_JournalFile.c_str(),
+ DesiredAccess,
+ 0,
+ NULL,
+ (CreateNew ? CREATE_ALWAYS : OPEN_EXISTING),
+ FILE_ATTRIBUTE_NORMAL | FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH,
+ NULL
+ );
if(m_hJournal == INVALID_HANDLE_VALUE)
FATAL("CreateFileW failed\n");