[ros-diffs] [cgutman] 43069: - Use proper object attributes and share access when opening the file object - Fixes a rare INVALID_KERNEL_HANDLE BSOD and debug log handle warnings from AFD when using Firefox - See bug #4796

cgutman at svn.reactos.org cgutman at svn.reactos.org
Fri Sep 18 01:09:17 CEST 2009


Author: cgutman
Date: Fri Sep 18 01:09:16 2009
New Revision: 43069

URL: http://svn.reactos.org/svn/reactos?rev=43069&view=rev
Log:
 - Use proper object attributes and share access when opening the file object
 - Fixes a rare INVALID_KERNEL_HANDLE BSOD and debug log handle warnings from AFD when using Firefox
 - See bug #4796

Modified:
    trunk/reactos/drivers/network/afd/afd/tdi.c

Modified: trunk/reactos/drivers/network/afd/afd/tdi.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/tdi.c?rev=43069&r1=43068&r2=43069&view=diff
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/tdi.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/tdi.c [iso-8859-1] Fri Sep 18 01:09:16 2009
@@ -112,7 +112,8 @@
 
     InitializeObjectAttributes(&Attr,                   /* Attribute buffer */
                                DeviceName,              /* Device name */
-                               OBJ_CASE_INSENSITIVE,    /* Attributes */
+                               OBJ_CASE_INSENSITIVE |   /* Attributes */
+                               OBJ_KERNEL_HANDLE,
                                NULL,                    /* Root directory */
                                NULL);                   /* Security descriptor */
 
@@ -122,7 +123,7 @@
                           &Iosb,                                /* IO status */
                           0,                                    /* Initial allocation size */
                           FILE_ATTRIBUTE_NORMAL,                /* File attributes */
-                          FILE_SHARE_READ | FILE_SHARE_WRITE,   /* Share access */
+                          0,                                    /* Share access */
                           FILE_OPEN_IF,                         /* Create disposition */
                           0,                                    /* Create options */
                           EaInfo,                               /* EA buffer */




More information about the Ros-diffs mailing list