+ Fixed bug in Windows 8

+ Minors
This commit is contained in:
Ladislav
2013-09-01 08:33:13 +02:00
parent 8207b80371
commit 1e1e441c5e
6 changed files with 45 additions and 17 deletions

View File

@@ -465,7 +465,7 @@ static bool BaseFile_Open(
#ifdef PLATFORM_WINDOWS
{
ULARGE_INTEGER FileSize;
DWORD dwWriteAccess = (dwStreamFlags & STREAM_FLAG_READ_ONLY) ? 0 : GENERIC_ALL;
DWORD dwWriteAccess = (dwStreamFlags & STREAM_FLAG_READ_ONLY) ? 0 : GENERIC_READ | GENERIC_WRITE;
DWORD dwWriteShare = (dwStreamFlags & STREAM_FLAG_WRITE_SHARE) ? FILE_SHARE_WRITE : 0;
// Open the file