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
f18554c7
Commit
f18554c7
authored
Oct 22, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Oct 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Fix test for WoW64 handle size differences.
parent
b8b66a53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
security.c
dlls/advapi32/tests/security.c
+7
-3
No files found.
dlls/advapi32/tests/security.c
View file @
f18554c7
...
@@ -1310,14 +1310,18 @@ static void test_token_attr(void)
...
@@ -1310,14 +1310,18 @@ static void test_token_attr(void)
ret
=
GetTokenInformation
(
Token
,
TokenDefaultDacl
,
Dacl
,
Size
,
&
Size2
);
ret
=
GetTokenInformation
(
Token
,
TokenDefaultDacl
,
Dacl
,
Size
,
&
Size2
);
ok
(
ret
,
"GetTokenInformation(TokenDefaultDacl) failed with error %u
\n
"
,
GetLastError
());
ok
(
ret
,
"GetTokenInformation(TokenDefaultDacl) failed with error %u
\n
"
,
GetLastError
());
ok
(
Dacl
->
DefaultDacl
==
NULL
,
"expected NULL, got %p
\n
"
,
Dacl
->
DefaultDacl
);
ok
(
Dacl
->
DefaultDacl
==
NULL
,
"expected NULL, got %p
\n
"
,
Dacl
->
DefaultDacl
);
ok
(
Size2
==
sizeof
(
TOKEN_DEFAULT_DACL
),
"got %u expected sizeof(TOKEN_DEFAULT_DACL)
\n
"
,
Size2
);
ok
(
Size2
==
sizeof
(
TOKEN_DEFAULT_DACL
)
||
broken
(
Size2
==
2
*
sizeof
(
TOKEN_DEFAULT_DACL
)),
/* WoW64 */
"got %u expected %u (sizeof(TOKEN_DEFAULT_DACL))
\n
"
,
Size2
,
sizeof
(
TOKEN_DEFAULT_DACL
));
Dacl
->
DefaultDacl
=
acl
;
Dacl
->
DefaultDacl
=
acl
;
ret
=
SetTokenInformation
(
Token
,
TokenDefaultDacl
,
Dacl
,
Size
);
ret
=
SetTokenInformation
(
Token
,
TokenDefaultDacl
,
Dacl
,
Size
);
ok
(
ret
,
"SetTokenInformation(TokenDefaultDacl) failed with error %u
\n
"
,
GetLastError
());
ok
(
ret
,
"SetTokenInformation(TokenDefaultDacl) failed with error %u
\n
"
,
GetLastError
());
ret
=
GetTokenInformation
(
Token
,
TokenDefaultDacl
,
Dacl
,
Size
,
&
Size2
);
if
(
Size2
==
sizeof
(
TOKEN_DEFAULT_DACL
))
{
ok
(
ret
,
"GetTokenInformation(TokenDefaultDacl) failed with error %u
\n
"
,
GetLastError
());
ret
=
GetTokenInformation
(
Token
,
TokenDefaultDacl
,
Dacl
,
Size
,
&
Size2
);
ok
(
ret
,
"GetTokenInformation(TokenDefaultDacl) failed with error %u
\n
"
,
GetLastError
());
}
else
win_skip
(
"TOKEN_DEFAULT_DACL size too small on WoW64
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
Dacl
);
HeapFree
(
GetProcessHeap
(),
0
,
Dacl
);
CloseHandle
(
Token
);
CloseHandle
(
Token
);
...
...
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