Paul Vriens : secur32/tests: Cast-qual warning fixes.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 12 13:55:14 CST 2007


Module: wine
Branch: master
Commit: 6c3efd1c32b1f9054e82a684da6ab54a599f252d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6c3efd1c32b1f9054e82a684da6ab54a599f252d

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Fri Jan 12 14:01:16 2007 +0100

secur32/tests: Cast-qual warning fixes.

---

 dlls/secur32/tests/schannel.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/dlls/secur32/tests/schannel.c b/dlls/secur32/tests/schannel.c
index ca870f4..0bbd96b 100644
--- a/dlls/secur32/tests/schannel.c
+++ b/dlls/secur32/tests/schannel.c
@@ -42,9 +42,9 @@ static const BYTE bigCert[] = { 0x30, 0x
  0x4c, 0x61, 0x6e, 0x67, 0x00, 0x30, 0x07, 0x30, 0x02, 0x06, 0x00, 0x03, 0x01,
  0x00, 0xa3, 0x16, 0x30, 0x14, 0x30, 0x12, 0x06, 0x03, 0x55, 0x1d, 0x13, 0x01,
  0x01, 0xff, 0x04, 0x08, 0x30, 0x06, 0x01, 0x01, 0xff, 0x02, 0x01, 0x01 };
-static const WCHAR cspNameW[] = { 'W','i','n','e','C','r','y','p','t','T','e',
+static WCHAR cspNameW[] = { 'W','i','n','e','C','r','y','p','t','T','e',
  'm','p',0 };
-static const BYTE privKey[] = {
+static BYTE privKey[] = {
  0x07, 0x02, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x52, 0x53, 0x41, 0x32, 0x00,
  0x02, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x79, 0x10, 0x1c, 0xd0, 0x6b, 0x10,
  0x18, 0x30, 0x94, 0x61, 0xdc, 0x0e, 0xcb, 0x96, 0x4e, 0x21, 0x3f, 0x79, 0xcd,
@@ -116,12 +116,13 @@ static void testAcquireSecurityContext(v
     PCCERT_CONTEXT certs[2];
     HCRYPTPROV csp;
     static CHAR unisp_name_a[] = UNISP_NAME_A;
+    static WCHAR ms_def_prov_w[] = MS_DEF_PROV_W;
     BOOL ret;
     HCRYPTKEY key;
     CRYPT_KEY_PROV_INFO keyProvInfo;
 
-    keyProvInfo.pwszContainerName = (LPWSTR)cspNameW;
-    keyProvInfo.pwszProvName = (LPWSTR)MS_DEF_PROV_W;
+    keyProvInfo.pwszContainerName = cspNameW;
+    keyProvInfo.pwszProvName = ms_def_prov_w;
     keyProvInfo.dwProvType = PROV_RSA_FULL;
     keyProvInfo.dwFlags = 0;
     keyProvInfo.cProvParam = 0;
@@ -253,7 +254,7 @@ static void testAcquireSecurityContext(v
     ret = CryptAcquireContextW(&csp, cspNameW, MS_DEF_PROV_W, PROV_RSA_FULL,
      CRYPT_NEWKEYSET);
     ok(ret, "CryptAcquireContextW failed: %08x\n", GetLastError());
-    ret = CryptImportKey(csp, (LPBYTE)privKey, sizeof(privKey), 0, 0, &key);
+    ret = CryptImportKey(csp, privKey, sizeof(privKey), 0, 0, &key);
     ok(ret, "CryptImportKey failed: %08x\n", GetLastError());
     if (ret)
     {




More information about the wine-cvs mailing list