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
c8da5149
Commit
c8da5149
authored
Oct 30, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Input parameter checking.
parent
93825eab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
sip.c
dlls/crypt32/sip.c
+7
-0
sip.c
dlls/crypt32/tests/sip.c
+6
-9
No files found.
dlls/crypt32/sip.c
View file @
c8da5149
...
...
@@ -383,6 +383,13 @@ BOOL WINAPI CryptSIPLoad
(
const
GUID
*
pgSubject
,
DWORD
dwFlags
,
SIP_DISPATCH_INFO
*
pSipDispatch
)
{
FIXME
(
"(%s %d %p) stub!
\n
"
,
debugstr_guid
(
pgSubject
),
dwFlags
,
pSipDispatch
);
if
(
!
pgSubject
||
dwFlags
!=
0
||
!
pSipDispatch
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
return
FALSE
;
}
...
...
dlls/crypt32/tests/sip.c
View file @
c8da5149
...
...
@@ -272,17 +272,15 @@ static void test_SIPLoad(void)
SetLastError
(
0xdeadbeef
);
ret
=
CryptSIPLoad
(
NULL
,
0
,
NULL
);
ok
(
!
ret
,
"Expected CryptSIPLoad to fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got 0x%08x
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got 0x%08x
\n
"
,
GetLastError
());
/* Only pSipDispatch NULL */
SetLastError
(
0xdeadbeef
);
ret
=
CryptSIPLoad
(
&
subject
,
0
,
NULL
);
ok
(
!
ret
,
"Expected CryptSIPLoad to fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got 0x%08x
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got 0x%08x
\n
"
,
GetLastError
());
/* No NULLs, but nonexistent pgSubject */
SetLastError
(
0xdeadbeef
);
...
...
@@ -405,9 +403,8 @@ static void test_SIPLoad(void)
sdi
.
pfGet
=
(
pCryptSIPGetSignedDataMsg
)
0xdeadbeef
;
ret
=
CryptSIPLoad
(
&
unknown
,
1
,
&
sdi
);
ok
(
!
ret
,
"Expected CryptSIPLoad to fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got 0x%08x
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got 0x%08x
\n
"
,
GetLastError
());
ok
(
sdi
.
pfGet
==
(
pCryptSIPGetSignedDataMsg
)
0xdeadbeef
,
"Expected no change to the function pointer
\n
"
);
}
...
...
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