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
ddad3152
Commit
ddad3152
authored
Aug 16, 2004
by
James Hawkins
Committed by
Alexandre Julliard
Aug 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few crypt test bugs.
parent
39a008ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
crypt.c
dlls/advapi32/tests/crypt.c
+3
-2
No files found.
dlls/advapi32/tests/crypt.c
View file @
ddad3152
...
...
@@ -132,6 +132,7 @@ static BOOL FindProvRegVals(DWORD dwIndex, DWORD *pdwProvType, LPSTR *pszProvNam
RegQueryInfoKey
(
hKey
,
NULL
,
NULL
,
NULL
,
pdwProvCount
,
pcbProvName
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
(
*
pcbProvName
)
++
;
if
(
!
(
*
pszProvName
=
((
LPSTR
)
LocalAlloc
(
LMEM_ZEROINIT
,
*
pcbProvName
))))
return
FALSE
;
...
...
@@ -193,7 +194,7 @@ static void test_enum_providers(void)
* after loop ends, count should be provCount + 1 so subtract 1
* to get actual number of providers */
count
=
0
;
while
(
CryptEnumProviders
(
count
++
,
NULL
,
0
,
&
dwT
ype
,
NULL
,
&
providerLen
))
while
(
CryptEnumProviders
(
count
++
,
NULL
,
0
,
&
t
ype
,
NULL
,
&
providerLen
))
;
count
--
;
ok
(
count
==
provCount
,
"expected %i, got %i
\n
"
,
(
int
)
provCount
,
(
int
)
count
);
...
...
@@ -201,7 +202,7 @@ static void test_enum_providers(void)
/* loop past the actual number of providers to get the error
* ERROR_NO_MORE_ITEMS */
for
(
count
=
0
;
count
<
provCount
+
1
;
count
++
)
result
=
CryptEnumProviders
(
count
,
NULL
,
0
,
&
dwT
ype
,
NULL
,
&
providerLen
);
result
=
CryptEnumProviders
(
count
,
NULL
,
0
,
&
t
ype
,
NULL
,
&
providerLen
);
ok
(
!
result
&&
GetLastError
()
==
ERROR_NO_MORE_ITEMS
,
"expected %08x, got %08x
\n
"
,
ERROR_NO_MORE_ITEMS
,
(
unsigned
int
)
GetLastError
());
...
...
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