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
0beaaa6b
Commit
0beaaa6b
authored
Apr 19, 2016
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Some spelling fixes for the security ok() messages.
Signed-off-by:
Francois Gouget
<
fgouget@free.fr
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1462f66d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
security.c
dlls/advapi32/tests/security.c
+8
-8
No files found.
dlls/advapi32/tests/security.c
View file @
0beaaa6b
...
...
@@ -3474,7 +3474,7 @@ static void test_CreateDirectoryA(void)
GENERIC_ALL
,
admin_sid
);
ok
(
bret
,
"Failed to add Administrator Group to ACL.
\n
"
);
bret
=
SetSecurityDescriptorDacl
(
pSD
,
TRUE
,
pDacl
,
FALSE
);
ok
(
bret
,
"Failed to add ACL to security desciptor.
\n
"
);
ok
(
bret
,
"Failed to add ACL to security desc
r
iptor.
\n
"
);
GetTempPathA
(
MAX_PATH
,
tmpdir
);
lstrcatA
(
tmpdir
,
"Please Remove Me"
);
...
...
@@ -3521,7 +3521,7 @@ static void test_CreateDirectoryA(void)
bret
=
InitializeAcl
(
pDacl
,
sizeof
(
ACL
),
ACL_REVISION
);
ok
(
bret
,
"Failed to initialize ACL
\n
"
);
bret
=
SetSecurityDescriptorDacl
(
pSD
,
TRUE
,
pDacl
,
FALSE
);
ok
(
bret
,
"Failed to add ACL to security desciptor
\n
"
);
ok
(
bret
,
"Failed to add ACL to security desc
r
iptor
\n
"
);
strcpy
(
tmpfile
,
tmpdir
);
lstrcatA
(
tmpfile
,
"/tmpfile"
);
...
...
@@ -3595,7 +3595,7 @@ static void test_CreateDirectoryA(void)
bret
=
InitializeAcl
(
pDacl
,
sizeof
(
ACL
),
ACL_REVISION
);
ok
(
bret
,
"Failed to initialize ACL
\n
"
);
bret
=
SetSecurityDescriptorDacl
(
pSD
,
TRUE
,
pDacl
,
FALSE
);
ok
(
bret
,
"Failed to add ACL to security desciptor
\n
"
);
ok
(
bret
,
"Failed to add ACL to security desc
r
iptor
\n
"
);
strcpy
(
tmpfile
,
tmpdir
);
lstrcatA
(
tmpfile
,
"/tmpfile"
);
...
...
@@ -3778,7 +3778,7 @@ static void test_GetNamedSecurityInfoA(void)
bret
=
pAddAccessAllowedAceEx
(
pDacl
,
ACL_REVISION
,
0
,
GENERIC_ALL
,
admin_sid
);
ok
(
bret
,
"Failed to add Administrator Group to ACL.
\n
"
);
bret
=
SetSecurityDescriptorDacl
(
pSD
,
TRUE
,
pDacl
,
FALSE
);
ok
(
bret
,
"Failed to add ACL to security desciptor.
\n
"
);
ok
(
bret
,
"Failed to add ACL to security desc
r
iptor.
\n
"
);
GetTempFileNameA
(
"."
,
"foo"
,
0
,
tmpfile
);
hTemp
=
CreateFileA
(
tmpfile
,
WRITE_DAC
|
GENERIC_WRITE
,
FILE_SHARE_DELETE
|
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_FLAG_DELETE_ON_CLOSE
,
NULL
);
...
...
@@ -3887,7 +3887,7 @@ static void test_GetNamedSecurityInfoA(void)
bret
=
InitializeAcl
(
pDacl
,
sizeof
(
ACL
),
ACL_REVISION
);
ok
(
bret
,
"Failed to initialize ACL.
\n
"
);
bret
=
SetSecurityDescriptorDacl
(
pSD
,
TRUE
,
pDacl
,
FALSE
);
ok
(
bret
,
"Failed to add ACL to security desciptor.
\n
"
);
ok
(
bret
,
"Failed to add ACL to security desc
r
iptor.
\n
"
);
status
=
pNtSetSecurityObject
(
hTemp
,
DACL_SECURITY_INFORMATION
,
pSD
);
ok
(
status
==
ERROR_SUCCESS
,
"NtSetSecurityObject returned %x
\n
"
,
status
);
...
...
@@ -3923,7 +3923,7 @@ static void test_GetNamedSecurityInfoA(void)
bret
=
pAddAccessDeniedAceEx
(
pDacl
,
ACL_REVISION
,
0
,
GENERIC_ALL
,
user_sid
);
ok
(
bret
,
"Failed to add Current User to ACL.
\n
"
);
bret
=
SetSecurityDescriptorDacl
(
pSD
,
TRUE
,
pDacl
,
FALSE
);
ok
(
bret
,
"Failed to add ACL to security desciptor.
\n
"
);
ok
(
bret
,
"Failed to add ACL to security desc
r
iptor.
\n
"
);
status
=
pNtSetSecurityObject
(
hTemp
,
DACL_SECURITY_INFORMATION
,
pSD
);
ok
(
status
==
ERROR_SUCCESS
,
"NtSetSecurityObject returned %x
\n
"
,
status
);
...
...
@@ -3939,7 +3939,7 @@ static void test_GetNamedSecurityInfoA(void)
bret
=
pAddAccessAllowedAceEx
(
pDacl
,
ACL_REVISION
,
0
,
GENERIC_ALL
,
user_sid
);
ok
(
bret
,
"Failed to add Current User to ACL.
\n
"
);
bret
=
SetSecurityDescriptorDacl
(
pSD
,
TRUE
,
pDacl
,
FALSE
);
ok
(
bret
,
"Failed to add ACL to security desciptor.
\n
"
);
ok
(
bret
,
"Failed to add ACL to security desc
r
iptor.
\n
"
);
status
=
pNtSetSecurityObject
(
hTemp
,
DACL_SECURITY_INFORMATION
,
pSD
);
ok
(
status
==
ERROR_SUCCESS
,
"NtSetSecurityObject returned %x
\n
"
,
status
);
...
...
@@ -4589,7 +4589,7 @@ static void test_GetSecurityInfo(void)
bret
=
pAddAccessAllowedAceEx
(
pDacl
,
ACL_REVISION
,
0
,
GENERIC_ALL
,
admin_sid
);
ok
(
bret
,
"Failed to add Administrator Group to ACL.
\n
"
);
bret
=
SetSecurityDescriptorDacl
(
pSD
,
TRUE
,
pDacl
,
FALSE
);
ok
(
bret
,
"Failed to add ACL to security desciptor.
\n
"
);
ok
(
bret
,
"Failed to add ACL to security desc
r
iptor.
\n
"
);
ret
=
pSetSecurityInfo
(
obj
,
SE_FILE_OBJECT
,
DACL_SECURITY_INFORMATION
,
NULL
,
NULL
,
pDacl
,
NULL
);
ok
(
ret
==
ERROR_SUCCESS
,
"SetSecurityInfo returned %d
\n
"
,
ret
);
...
...
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