mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
- 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 svn path=/trunk/; revision=43069
This commit is contained in:
parent
6049b93ebc
commit
885d8e0656
|
@ -112,7 +112,8 @@ static NTSTATUS TdiOpenDevice(
|
|||
|
||||
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 @@ static NTSTATUS TdiOpenDevice(
|
|||
&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 */
|
||||
|
|
Loading…
Reference in a new issue