Commit 1d9e3217 authored by Mikhail Maroukhine's avatar Mikhail Maroukhine Committed by Alexandre Julliard

rsaenh/tests: Fix compiler warnings with flag -Wcast-qual.

parent c31bdb98
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment