ReadAccess and DeleteAcces was initialized with wrong values (in IoCheckShareAccess() and IoSetShareAccess()). share.c

svn path=/trunk/; revision=2174
This commit is contained in:
Hartmut Birr 2001-08-14 21:05:10 +00:00
parent 41e8ef1540
commit 7ee896cad1
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
/* $Id: pnproot.c,v 1.1 2001/05/01 23:08:19 chorns Exp $
/* $Id: pnproot.c,v 1.2 2001/08/14 21:05:10 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -78,7 +78,7 @@ PnpRootQueryBusRelations(
PDEVICE_RELATIONS Relations;
PLIST_ENTRY CurrentEntry;
PPNPROOT_DEVICE Device;
NTSTATUS Status;
NTSTATUS Status = STATUS_SUCCESS;
ULONG Size;
ULONG i;

View file

@ -1,4 +1,4 @@
/* $Id: share.c,v 1.3 2001/05/24 22:19:25 ekohl Exp $
/* $Id: share.c,v 1.4 2001/08/14 21:05:10 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -78,7 +78,7 @@ IoCheckShareAccess(ACCESS_MASK DesiredAccess,
ReadAccess = (DesiredAccess & (FILE_READ_DATA | FILE_EXECUTE));
WriteAccess = (DesiredAccess & (FILE_READ_DATA | FILE_APPEND_DATA));
ReadAccess = (DesiredAccess & DELETE);
DeleteAccess = (DesiredAccess & DELETE);
FileObject->ReadAccess = ReadAccess;
FileObject->WriteAccess = WriteAccess;
@ -220,7 +220,7 @@ IoSetShareAccess(ACCESS_MASK DesiredAccess,
ReadAccess = (DesiredAccess & (FILE_READ_DATA | FILE_EXECUTE));
WriteAccess = (DesiredAccess & (FILE_READ_DATA | FILE_APPEND_DATA));
ReadAccess = (DesiredAccess & DELETE);
DeleteAccess = (DesiredAccess & DELETE);
FileObject->ReadAccess = ReadAccess;
FileObject->WriteAccess = WriteAccess;