Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
dd562594
Commit
dd562594
authored
Nov 29, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Fix some crashes on NT4.
parent
4b643733
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
security.c
dlls/advapi32/tests/security.c
+16
-7
No files found.
dlls/advapi32/tests/security.c
View file @
dd562594
...
...
@@ -2146,7 +2146,7 @@ static void test_SetEntriesInAcl(void)
if
(
!
pSetEntriesInAclW
)
{
skip
(
"SetEntriesInAclW is not available
\n
"
);
win_
skip
(
"SetEntriesInAclW is not available
\n
"
);
return
;
}
...
...
@@ -2154,7 +2154,7 @@ static void test_SetEntriesInAcl(void)
res
=
pSetEntriesInAclW
(
0
,
NULL
,
NULL
,
&
NewAcl
);
if
(
res
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
skip
(
"SetEntriesInAclW is not implemented
\n
"
);
win_
skip
(
"SetEntriesInAclW is not implemented
\n
"
);
return
;
}
ok
(
res
==
ERROR_SUCCESS
,
"SetEntriesInAclW failed: %u
\n
"
,
res
);
...
...
@@ -2164,7 +2164,7 @@ static void test_SetEntriesInAcl(void)
res
=
InitializeAcl
(
OldAcl
,
256
,
ACL_REVISION
);
if
(
!
res
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
skip
(
"ACLs not implemented - skipping tests
\n
"
);
win_
skip
(
"ACLs not implemented - skipping tests
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
OldAcl
);
return
;
}
...
...
@@ -2209,15 +2209,17 @@ static void test_SetEntriesInAcl(void)
ExplicitAccess
.
Trustee
.
TrusteeForm
=
TRUSTEE_BAD_FORM
;
res
=
pSetEntriesInAclW
(
1
,
&
ExplicitAccess
,
OldAcl
,
&
NewAcl
);
ok
(
res
==
ERROR_INVALID_PARAMETER
,
"SetEntriesInAclW failed: %u
\n
"
,
res
);
ok
(
NewAcl
==
NULL
,
"returned acl wasn't NULL: %p
\n
"
,
NewAcl
);
LocalFree
(
NewAcl
);
ok
(
NewAcl
==
NULL
||
broken
(
NewAcl
!=
NULL
),
/* NT4 */
"returned acl wasn't NULL: %p
\n
"
,
NewAcl
);
ExplicitAccess
.
Trustee
.
TrusteeForm
=
TRUSTEE_IS_USER
;
ExplicitAccess
.
Trustee
.
MultipleTrusteeOperation
=
TRUSTEE_IS_IMPERSONATE
;
res
=
pSetEntriesInAclW
(
1
,
&
ExplicitAccess
,
OldAcl
,
&
NewAcl
);
ok
(
res
==
ERROR_INVALID_PARAMETER
,
"SetEntriesInAclW failed: %u
\n
"
,
res
);
ok
(
NewAcl
==
NULL
,
"returned acl wasn't NULL: %p
\n
"
,
NewAcl
);
LocalFree
(
NewAcl
);
ok
(
NewAcl
==
NULL
||
broken
(
NewAcl
!=
NULL
),
/* NT4 */
"returned acl wasn't NULL: %p
\n
"
,
NewAcl
);
ExplicitAccess
.
Trustee
.
MultipleTrusteeOperation
=
NO_MULTIPLE_TRUSTEE
;
ExplicitAccess
.
grfAccessMode
=
SET_ACCESS
;
...
...
@@ -2805,6 +2807,13 @@ static void test_GetSecurityInfo(void)
LocalFree
(
sd
);
if
(
!
pCreateWellKnownSid
)
{
win_skip
(
"NULL parameter test would crash on NT4
\n
"
);
CloseHandle
(
obj
);
return
;
}
/* If we don't ask for the security descriptor, Windows will still give us
the other stuff, leaving us no way to free it. */
ret
=
pGetSecurityInfo
(
obj
,
SE_FILE_OBJECT
,
...
...
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