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
dfb8e7cb
Commit
dfb8e7cb
authored
Oct 25, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Use 0 instead of casting NULL to a handle of integer type.
parent
80b33c8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
crypt.c
dlls/advapi32/tests/crypt.c
+4
-4
No files found.
dlls/advapi32/tests/crypt.c
View file @
dfb8e7cb
...
...
@@ -274,11 +274,11 @@ static void test_incorrect_api_usage(void)
ok
(
!
result
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"%d
\n
"
,
GetLastError
());
dwLen
=
1
;
result
=
pCryptDecrypt
(
hKey
,
(
HCRYPTHASH
)
NULL
,
TRUE
,
0
,
&
temp
,
&
dwLen
);
result
=
pCryptDecrypt
(
hKey
,
0
,
TRUE
,
0
,
&
temp
,
&
dwLen
);
ok
(
!
result
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"%d
\n
"
,
GetLastError
());
dwLen
=
1
;
result
=
pCryptEncrypt
(
hKey
,
(
HCRYPTHASH
)
NULL
,
TRUE
,
0
,
&
temp
,
&
dwLen
,
1
);
result
=
pCryptEncrypt
(
hKey
,
0
,
TRUE
,
0
,
&
temp
,
&
dwLen
,
1
);
ok
(
!
result
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"%d
\n
"
,
GetLastError
());
result
=
pCryptDeriveKey
(
hProv
,
CALG_RC4
,
hHash
,
0
,
&
hKey2
);
...
...
@@ -293,7 +293,7 @@ static void test_incorrect_api_usage(void)
#endif
dwLen
=
1
;
result
=
pCryptExportKey
(
hKey
,
(
HCRYPTPROV
)
NULL
,
0
,
0
,
&
temp
,
&
dwLen
);
result
=
pCryptExportKey
(
hKey
,
0
,
0
,
0
,
&
temp
,
&
dwLen
);
ok
(
!
result
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"%d
\n
"
,
GetLastError
());
result
=
pCryptGenKey
(
hProv
,
CALG_RC4
,
0
,
&
hKey2
);
...
...
@@ -320,7 +320,7 @@ static void test_incorrect_api_usage(void)
result
=
pCryptHashSessionKey
(
hHash
,
hKey
,
0
);
ok
(
!
result
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"%d
\n
"
,
GetLastError
());
result
=
pCryptImportKey
(
hProv
,
&
temp
,
1
,
(
HCRYPTKEY
)
NULL
,
0
,
&
hKey2
);
result
=
pCryptImportKey
(
hProv
,
&
temp
,
1
,
0
,
0
,
&
hKey2
);
ok
(
!
result
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"%d
\n
"
,
GetLastError
());
if
(
pCryptSignHashW
)
...
...
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