[ros-diffs] [cwittich] 39042: sync cryptnet with wine 1.1.13

cwittich at svn.reactos.org cwittich at svn.reactos.org
Fri Jan 23 13:45:10 CET 2009


Author: cwittich
Date: Fri Jan 23 06:45:09 2009
New Revision: 39042

URL: http://svn.reactos.org/svn/reactos?rev=39042&view=rev
Log:
sync cryptnet with wine 1.1.13

Modified:
    trunk/reactos/dll/win32/cryptnet/cryptnet_main.c

Modified: trunk/reactos/dll/win32/cryptnet/cryptnet_main.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/cryptnet/cryptnet_main.c?rev=39042&r1=39041&r2=39042&view=diff
==============================================================================
--- trunk/reactos/dll/win32/cryptnet/cryptnet_main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/cryptnet/cryptnet_main.c [iso-8859-1] Fri Jan 23 06:45:09 2009
@@ -136,7 +136,7 @@
  LPVOID pvPara, DWORD dwFlags, PCRYPT_URL_ARRAY pUrlArray, DWORD *pcbUrlArray,
  PCRYPT_URL_INFO pUrlInfo, DWORD *pcbUrlInfo, LPVOID pvReserved)
 {
-    PCCERT_CONTEXT cert = (PCCERT_CONTEXT)pvPara;
+    PCCERT_CONTEXT cert = pvPara;
     PCERT_EXTENSION ext;
     BOOL ret = FALSE;
 
@@ -686,7 +686,7 @@
     switch (status)
     {
     case INTERNET_STATUS_REQUEST_COMPLETE:
-        result = (LPINTERNET_ASYNC_RESULT)statusInfo;
+        result = statusInfo;
         context->error = result->dwError;
         SetEvent(context->event);
     }
@@ -1244,17 +1244,17 @@
                     {
                     case CERT_QUERY_CONTENT_CERT:
                         if (!CertAddCertificateContextToStore(store,
-                         (PCCERT_CONTEXT)context, CERT_STORE_ADD_ALWAYS, NULL))
+                         context, CERT_STORE_ADD_ALWAYS, NULL))
                             ret = FALSE;
                         break;
                     case CERT_QUERY_CONTENT_CRL:
                         if (!CertAddCRLContextToStore(store,
-                         (PCCRL_CONTEXT)context, CERT_STORE_ADD_ALWAYS, NULL))
+                         context, CERT_STORE_ADD_ALWAYS, NULL))
                              ret = FALSE;
                         break;
                     case CERT_QUERY_CONTENT_CTL:
                         if (!CertAddCTLContextToStore(store,
-                         (PCCTL_CONTEXT)context, CERT_STORE_ADD_ALWAYS, NULL))
+                         context, CERT_STORE_ADD_ALWAYS, NULL))
                              ret = FALSE;
                         break;
                     default:
@@ -1327,7 +1327,7 @@
 
 static BOOL CRYPT_GetExpirationFromCert(void *pvObject, FILETIME *expiration)
 {
-    PCCERT_CONTEXT cert = (PCCERT_CONTEXT)pvObject;
+    PCCERT_CONTEXT cert = pvObject;
 
     *expiration = cert->pCertInfo->NotAfter;
     return TRUE;
@@ -1335,7 +1335,7 @@
 
 static BOOL CRYPT_GetExpirationFromCRL(void *pvObject, FILETIME *expiration)
 {
-    PCCRL_CONTEXT cert = (PCCRL_CONTEXT)pvObject;
+    PCCRL_CONTEXT cert = pvObject;
 
     *expiration = cert->pCrlInfo->NextUpdate;
     return TRUE;
@@ -1343,7 +1343,7 @@
 
 static BOOL CRYPT_GetExpirationFromCTL(void *pvObject, FILETIME *expiration)
 {
-    PCCTL_CONTEXT cert = (PCCTL_CONTEXT)pvObject;
+    PCCTL_CONTEXT cert = pvObject;
 
     *expiration = cert->pCtlInfo->NextUpdate;
     return TRUE;
@@ -1518,7 +1518,7 @@
                             PCRL_ENTRY entry = NULL;
 
                             CertFindCertificateInCRL(
-                             (PCCERT_CONTEXT)rgpvContext[i], crl, 0, NULL,
+                             rgpvContext[i], crl, 0, NULL,
                              &entry);
                             if (entry)
                             {



More information about the Ros-diffs mailing list