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
dce0d05e
Commit
dce0d05e
authored
Aug 29, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Add some extra tests for WintrustRemoveActionID.
parent
6eea5039
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
register.c
dlls/wintrust/tests/register.c
+22
-2
No files found.
dlls/wintrust/tests/register.c
View file @
dce0d05e
...
...
@@ -130,7 +130,7 @@ static void test_AddRem_ActionID(void)
todo_wine
{
ok
(
ret
,
"Expected WintrustAddActionID to succeed.
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
/* W2K */
,
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %ld.
\n
"
,
GetLastError
());
}
...
...
@@ -152,7 +152,7 @@ static void test_AddRem_ActionID(void)
todo_wine
{
ok
(
ret
,
"Expected WintrustAddActionID to succeed.
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
/* W2K */
,
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %ld.
\n
"
,
GetLastError
());
}
...
...
@@ -163,6 +163,26 @@ static void test_AddRem_ActionID(void)
ok
(
ret
,
"WintrustRemoveActionID failed : 0x%08lx
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
0xdeadbeef
,
"Last error should not have been changed: 0x%08lx
\n
"
,
GetLastError
());
}
/* NULL input */
SetLastError
(
0xdeadbeef
);
ret
=
pWintrustRemoveActionID
(
NULL
);
todo_wine
{
ok
(
ret
,
"Expected WintrustRemoveActionID to succeed.
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %ld.
\n
"
,
GetLastError
());
}
/* The passed GUID is removed by a previous call, so it's basically a test with a non-existent Trust provider */
SetLastError
(
0xdeadbeef
);
ret
=
pWintrustRemoveActionID
(
&
ActionID
);
todo_wine
{
ok
(
ret
,
"Expected WintrustRemoveActionID to succeed.
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %ld.
\n
"
,
GetLastError
());
}
}
START_TEST
(
register
)
...
...
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