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
1d9e3217
Commit
1d9e3217
authored
Apr 01, 2010
by
Mikhail Maroukhine
Committed by
Alexandre Julliard
Apr 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh/tests: Fix compiler warnings with flag -Wcast-qual.
parent
c31bdb98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
rsaenh.c
dlls/rsaenh/tests/rsaenh.c
+3
-3
No files found.
dlls/rsaenh/tests/rsaenh.c
View file @
1d9e3217
...
@@ -476,7 +476,7 @@ static void test_hashes(void)
...
@@ -476,7 +476,7 @@ static void test_hashes(void)
ok
(
result
,
"CryptReleaseContext failed 0x%08x
\n
"
,
GetLastError
());
ok
(
result
,
"CryptReleaseContext failed 0x%08x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
result
=
CryptHashData
(
hHash
,
(
BYTE
*
)
"data"
,
sizeof
(
"data"
),
0
);
result
=
CryptHashData
(
hHash
,
(
const
BYTE
*
)
"data"
,
sizeof
(
"data"
),
0
);
error
=
GetLastError
();
error
=
GetLastError
();
ok
(
!
result
,
"CryptHashData succeeded
\n
"
);
ok
(
!
result
,
"CryptHashData succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER got %u
\n
"
,
error
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER got %u
\n
"
,
error
);
...
@@ -493,7 +493,7 @@ static void test_hashes(void)
...
@@ -493,7 +493,7 @@ static void test_hashes(void)
result
=
CryptCreateHash
(
hProv
,
CALG_SHA1
,
0
,
0
,
&
hHash
);
result
=
CryptCreateHash
(
hProv
,
CALG_SHA1
,
0
,
0
,
&
hHash
);
ok
(
result
,
"CryptCreateHash failed 0x%08x
\n
"
,
GetLastError
());
ok
(
result
,
"CryptCreateHash failed 0x%08x
\n
"
,
GetLastError
());
result
=
CryptHashData
(
hHash
,
(
BYTE
*
)
"data"
,
sizeof
(
"data"
),
0
);
result
=
CryptHashData
(
hHash
,
(
const
BYTE
*
)
"data"
,
sizeof
(
"data"
),
0
);
ok
(
result
,
"CryptHashData failed 0x%08x
\n
"
,
GetLastError
());
ok
(
result
,
"CryptHashData failed 0x%08x
\n
"
,
GetLastError
());
result
=
CryptDuplicateHash
(
hHash
,
NULL
,
0
,
&
hHashClone
);
result
=
CryptDuplicateHash
(
hHash
,
NULL
,
0
,
&
hHashClone
);
...
@@ -504,7 +504,7 @@ static void test_hashes(void)
...
@@ -504,7 +504,7 @@ static void test_hashes(void)
ok
(
result
,
"CryptGetHashParam failed 0x%08x
\n
"
,
GetLastError
());
ok
(
result
,
"CryptGetHashParam failed 0x%08x
\n
"
,
GetLastError
());
/* add data after duplicating the hash */
/* add data after duplicating the hash */
result
=
CryptHashData
(
hHash
,
(
BYTE
*
)
"more data"
,
sizeof
(
"more data"
),
0
);
result
=
CryptHashData
(
hHash
,
(
const
BYTE
*
)
"more data"
,
sizeof
(
"more data"
),
0
);
ok
(
result
,
"CryptHashData failed 0x%08x
\n
"
,
GetLastError
());
ok
(
result
,
"CryptHashData failed 0x%08x
\n
"
,
GetLastError
());
result
=
CryptDestroyHash
(
hHash
);
result
=
CryptDestroyHash
(
hHash
);
...
...
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