mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Do not probe a user buffer until SEH is usable.
svn path=/trunk/; revision=6994
This commit is contained in:
parent
63a627527e
commit
90f099cffe
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Id: dir.c,v 1.32 2003/10/11 17:51:56 hbirr Exp $
|
||||
* $Id: dir.c,v 1.33 2003/12/13 14:25:04 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -206,12 +206,15 @@ NTSTATUS DoQuery (PVFAT_IRP_CONTEXT IrpContext)
|
|||
|
||||
// determine Buffer for result :
|
||||
BufferLength = Stack->Parameters.QueryDirectory.Length;
|
||||
#if 0
|
||||
/* Do not probe the user buffer until SEH is available */
|
||||
if (IrpContext->Irp->RequestorMode != KernelMode &&
|
||||
IrpContext->Irp->MdlAddress == NULL &&
|
||||
IrpContext->Irp->UserBuffer != NULL)
|
||||
{
|
||||
ProbeForWrite(IrpContext->Irp->UserBuffer, BufferLength, 1);
|
||||
}
|
||||
#endif
|
||||
Buffer = VfatGetUserBuffer(IrpContext->Irp);
|
||||
|
||||
if (!ExAcquireResourceSharedLite(&pFcb->MainResource,
|
||||
|
|
Loading…
Reference in a new issue