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... ============================================================================== --- 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 */