access fixes

svn path=/trunk/; revision=486
This commit is contained in:
Eric Kohl 1999-05-19 17:55:44 +00:00
parent e3876459ef
commit 64f28f26bd

View file

@ -34,7 +34,6 @@ HANDLE STDCALL CreateFileA(LPCSTR lpFileName,
DWORD dwFlagsAndAttributes,
HANDLE hTemplateFile)
{
WCHAR FileNameW[MAX_PATH];
ULONG i = 0;
@ -73,7 +72,6 @@ HANDLE STDCALL CreateFileW(LPCWSTR lpFileName,
ULONG Flags = 0;
WCHAR PathNameW[MAX_PATH];
WCHAR FileNameW[MAX_PATH];
WCHAR *FilePart;
UINT Len = 0;
switch (dwCreationDisposition)
@ -100,6 +98,12 @@ HANDLE STDCALL CreateFileW(LPCWSTR lpFileName,
DPRINT("CreateFileW(lpFileName %w)\n",lpFileName);
if (dwDesiredAccess & GENERIC_READ)
dwDesiredAccess |= FILE_GENERIC_READ;
if (dwDesiredAccess & GENERIC_WRITE)
dwDesiredAccess |= FILE_GENERIC_WRITE;
if (!(dwFlagsAndAttributes & FILE_FLAG_OVERLAPPED))
{
Flags |= FILE_SYNCHRONOUS_IO_ALERT;