Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b4eab714
Commit
b4eab714
authored
Oct 30, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Pass SYNCHRONIZE flag in NtCreateFile and NtOpenFile calls.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
59607a4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
security.c
dlls/advapi32/security.c
+2
-2
No files found.
dlls/advapi32/security.c
View file @
b4eab714
...
@@ -420,7 +420,7 @@ static inline DWORD get_security_file( LPCWSTR full_file_name, DWORD access, HAN
...
@@ -420,7 +420,7 @@ static inline DWORD get_security_file( LPCWSTR full_file_name, DWORD access, HAN
attr
.
Attributes
=
OBJ_CASE_INSENSITIVE
;
attr
.
Attributes
=
OBJ_CASE_INSENSITIVE
;
attr
.
ObjectName
=
&
file_nameW
;
attr
.
ObjectName
=
&
file_nameW
;
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityDescriptor
=
NULL
;
status
=
NtCreateFile
(
file
,
access
,
&
attr
,
&
io
,
NULL
,
FILE_FLAG_BACKUP_SEMANTICS
,
status
=
NtCreateFile
(
file
,
access
|
SYNCHRONIZE
,
&
attr
,
&
io
,
NULL
,
FILE_FLAG_BACKUP_SEMANTICS
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
FILE_OPEN
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
FILE_OPEN
,
FILE_OPEN_FOR_BACKUP_INTENT
,
NULL
,
0
);
FILE_OPEN_FOR_BACKUP_INTENT
,
NULL
,
0
);
RtlFreeUnicodeString
(
&
file_nameW
);
RtlFreeUnicodeString
(
&
file_nameW
);
...
@@ -5891,7 +5891,7 @@ DWORD WINAPI SetSecurityInfo(HANDLE handle, SE_OBJECT_TYPE ObjectType,
...
@@ -5891,7 +5891,7 @@ DWORD WINAPI SetSecurityInfo(HANDLE handle, SE_OBJECT_TYPE ObjectType,
attr
.
Attributes
=
0
;
attr
.
Attributes
=
0
;
attr
.
ObjectName
=
&
name_info
->
Name
;
attr
.
ObjectName
=
&
name_info
->
Name
;
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityDescriptor
=
NULL
;
status
=
NtOpenFile
(
&
parent
,
READ_CONTROL
,
&
attr
,
&
io
,
status
=
NtOpenFile
(
&
parent
,
READ_CONTROL
|
SYNCHRONIZE
,
&
attr
,
&
io
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
FILE_OPEN_FOR_BACKUP_INTENT
);
FILE_OPEN_FOR_BACKUP_INTENT
);
heap_free
(
name_info
);
heap_free
(
name_info
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment