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
2cecc630
Commit
2cecc630
authored
Oct 16, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Oct 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Don't link to CreateWellKnownSid at compile time in the security tests.
It isn't available on some Windows platforms.
parent
12e44bf2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
security.c
dlls/advapi32/tests/security.c
+7
-2
No files found.
dlls/advapi32/tests/security.c
View file @
2cecc630
...
...
@@ -2012,6 +2012,11 @@ static void test_ConvertSecurityDescriptorToString()
skip
(
"ConvertSecurityDescriptorToStringSecurityDescriptor is not available
\n
"
);
return
;
}
if
(
!
pCreateWellKnownSid
)
{
skip
(
"CreateWellKnownSid is not available
\n
"
);
return
;
}
/* It seems Windows XP adds an extra character to the length of the string for each ACE in an ACL. We
* don't replicate this feature so we only test len >= strlen+1. */
...
...
@@ -2025,7 +2030,7 @@ static void test_ConvertSecurityDescriptorToString()
CHECK_RESULT_AND_FREE
(
""
);
size
=
4096
;
CreateWellKnownSid
(
WinLocalSid
,
NULL
,
sid_buf
,
&
size
);
p
CreateWellKnownSid
(
WinLocalSid
,
NULL
,
sid_buf
,
&
size
);
SetSecurityDescriptorOwner
(
&
desc
,
(
PSID
)
sid_buf
,
FALSE
);
ok
(
pConvertSecurityDescriptorToStringSecurityDescriptorA
(
&
desc
,
SDDL_REVISION_1
,
sec_info
,
&
string
,
&
len
),
"Conversion failed
\n
"
);
CHECK_RESULT_AND_FREE
(
"O:S-1-2-0"
);
...
...
@@ -2035,7 +2040,7 @@ static void test_ConvertSecurityDescriptorToString()
CHECK_RESULT_AND_FREE
(
"O:S-1-2-0"
);
size
=
sizeof
(
sid_buf
);
CreateWellKnownSid
(
WinLocalSystemSid
,
NULL
,
sid_buf
,
&
size
);
p
CreateWellKnownSid
(
WinLocalSystemSid
,
NULL
,
sid_buf
,
&
size
);
SetSecurityDescriptorOwner
(
&
desc
,
(
PSID
)
sid_buf
,
TRUE
);
ok
(
pConvertSecurityDescriptorToStringSecurityDescriptorA
(
&
desc
,
SDDL_REVISION_1
,
sec_info
,
&
string
,
&
len
),
"Conversion failed
\n
"
);
CHECK_RESULT_AND_FREE
(
"O:SY"
);
...
...
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