Author: janderwald
Date: Fri Dec 7 10:33:49 2012
New Revision: 57814
URL:
http://svn.reactos.org/svn/reactos?rev=57814&view=rev
Log:
[NDIS]
- Fix several bugs in NdisOpenFile
- Introduced in rev 5990 (5/9/2003)
Modified:
trunk/reactos/drivers/network/ndis/ndis/misc.c
Modified: trunk/reactos/drivers/network/ndis/ndis/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/misc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/misc.c [iso-8859-1] Fri Dec 7 10:33:49 2012
@@ -273,7 +273,7 @@
InitializeObjectAttributes ( &ObjectAttributes,
&FullFileName,
- OBJ_CASE_INSENSITIVE,
+ OBJ_CASE_INSENSITIVE|OBJ_KERNEL_HANDLE,
NULL,
NULL );
@@ -285,14 +285,14 @@
NULL, // PLARGE_INTEGER AllocationSize
0, // ULONG FileAttributes
FILE_SHARE_READ, // ULONG ShareAccess
- FILE_CREATE, // ULONG CreateDisposition
+ FILE_OPEN, // ULONG CreateDisposition
FILE_SYNCHRONOUS_IO_NONALERT, // ULONG CreateOptions
0, // PVOID EaBuffer
0 ); // ULONG EaLength
if ( !NT_SUCCESS(*Status) )
{
- NDIS_DbgPrint(MIN_TRACE, ("ZwCreateFile failed (%x)\n", *Status));
+ NDIS_DbgPrint(MIN_TRACE, ("ZwCreateFile failed (%x) Name %wZ\n", *Status,
FileName));
*Status = NDIS_STATUS_FAILURE;
}