mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
ReadAccess and DeleteAcces was initialized with wrong values (in IoCheckShareAccess() and IoSetShareAccess()). share.c
svn path=/trunk/; revision=2174
This commit is contained in:
parent
41e8ef1540
commit
7ee896cad1
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue