mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
access fixes
svn path=/trunk/; revision=486
This commit is contained in:
parent
e3876459ef
commit
64f28f26bd
1 changed files with 25 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue