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
0b7711e5
Commit
0b7711e5
authored
May 17, 2010
by
Juan Lang
Committed by
Alexandre Julliard
May 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust/tests: Fix test failures when not running as administrator.
parent
b659dee9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
crypt.c
dlls/wintrust/tests/crypt.c
+12
-2
No files found.
dlls/wintrust/tests/crypt.c
View file @
0b7711e5
...
...
@@ -233,7 +233,12 @@ static void test_context(void)
*/
ret
=
pCryptCATAdminAcquireContext
(
&
hca
,
&
dummy
,
0
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
||
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"CryptCATAdminAcquireContext failed %u
\n
"
,
GetLastError
());
if
(
!
ret
&&
GetLastError
()
==
ERROR_ACCESS_DENIED
)
{
win_skip
(
"Not running as administrator
\n
"
);
return
;
}
ok
(
hca
!=
NULL
,
"Expected a context handle, got NULL
\n
"
);
attrs
=
GetFileAttributes
(
catroot
);
...
...
@@ -492,7 +497,12 @@ static void test_CryptCATAdminAddRemoveCatalog(void)
CloseHandle
(
file
);
ret
=
pCryptCATAdminAcquireContext
(
&
hcatadmin
,
&
dummy
,
0
);
ok
(
ret
,
"CryptCATAdminAcquireContext failed %u
\n
"
,
GetLastError
());
ok
(
ret
||
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"CryptCATAdminAcquireContext failed %u
\n
"
,
GetLastError
());
if
(
!
ret
&&
GetLastError
()
==
ERROR_ACCESS_DENIED
)
{
win_skip
(
"Not running as administrator
\n
"
);
return
;
}
SetLastError
(
0xdeadbeef
);
hcatinfo
=
pCryptCATAdminAddCatalog
(
NULL
,
NULL
,
NULL
,
0
);
...
...
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