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
ea4489cf
Commit
ea4489cf
authored
Feb 11, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust/crypt: Fix some test failures for a NULL parameter.
parent
517168b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
crypt.c
dlls/wintrust/crypt.c
+8
-1
crypt.c
dlls/wintrust/tests/crypt.c
+0
-6
No files found.
dlls/wintrust/crypt.c
View file @
ea4489cf
...
...
@@ -51,7 +51,14 @@ BOOL WINAPI CryptCATAdminAcquireContext(HCATADMIN* catAdmin,
{
FIXME
(
"%p %s %x
\n
"
,
catAdmin
,
debugstr_guid
(
sysSystem
),
dwFlags
);
if
(
catAdmin
)
*
catAdmin
=
(
HCATADMIN
)
0xdeadbeef
;
if
(
!
catAdmin
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
*
catAdmin
=
(
HCATADMIN
)
0xdeadbeef
;
return
TRUE
;
}
...
...
dlls/wintrust/tests/crypt.c
View file @
ea4489cf
...
...
@@ -67,12 +67,9 @@ static void test_context(void)
/* All NULL */
SetLastError
(
0xdeadbeef
);
ret
=
pCryptCATAdminAcquireContext
(
NULL
,
NULL
,
0
);
todo_wine
{
ok
(
!
ret
,
"Expected failure
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
}
/* NULL GUID */
SetLastError
(
0xdeadbeef
);
...
...
@@ -113,12 +110,9 @@ static void test_context(void)
/* NULL context handle and dummy GUID */
SetLastError
(
0xdeadbeef
);
ret
=
pCryptCATAdminAcquireContext
(
NULL
,
&
dummy
,
0
);
todo_wine
{
ok
(
!
ret
,
"Expected failure
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
}
/* Correct context handle and dummy GUID */
SetLastError
(
0xdeadbeef
);
...
...
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