From 7ee896cad1bddbb84c2428644a328e3279be92c8 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Tue, 14 Aug 2001 21:05:10 +0000 Subject: [PATCH] ReadAccess and DeleteAcces was initialized with wrong values (in IoCheckShareAccess() and IoSetShareAccess()). share.c svn path=/trunk/; revision=2174 --- reactos/ntoskrnl/io/pnproot.c | 4 ++-- reactos/ntoskrnl/io/share.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/reactos/ntoskrnl/io/pnproot.c b/reactos/ntoskrnl/io/pnproot.c index 9242e712232..99b235847fa 100644 --- a/reactos/ntoskrnl/io/pnproot.c +++ b/reactos/ntoskrnl/io/pnproot.c @@ -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; diff --git a/reactos/ntoskrnl/io/share.c b/reactos/ntoskrnl/io/share.c index 2beeb7d607f..a2d2d9d4329 100644 --- a/reactos/ntoskrnl/io/share.c +++ b/reactos/ntoskrnl/io/share.c @@ -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;