Fix fallure of erasing & saving server logs (of network drive) issue

Fix #10794
This commit is contained in:
Don Ho 2021-11-18 02:32:21 +01:00
parent f52c2b022d
commit 990c92540d
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ void Win32_IO_File::fillCreateParams(DWORD &access, DWORD &share, DWORD &disp, D
else
{
disp = OPEN_ALWAYS; // Open existing file for writing without destroying it or create new
share |= FILE_SHARE_WRITE;
access |= GENERIC_WRITE;
attrib |= FILE_FLAG_WRITE_THROUGH; // Write cached data directly to disk (no lazy writer)
}