[CRYPT32] Sync with Wine Staging 2.16. CORE-13762
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 17 Sep 2017 12:33:29 +0000 (12:33 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 17 Sep 2017 12:33:29 +0000 (12:33 +0000)
8738b03 crypt32: Increase buffer size to silence a gcc warning.

svn path=/trunk/; revision=75865

reactos/dll/win32/crypt32/encode.c
reactos/media/doc/README.WINE

index d6b61a8..b006704 100644 (file)
@@ -3517,11 +3517,11 @@ static BOOL WINAPI CRYPT_AsnEncodeUtcTime(DWORD dwCertEncodingType,
     __TRY
     {
         SYSTEMTIME sysTime;
-        /* sorry, magic number: enough for tag, len, YYMMDDHHMMSSZ\0.  I use a
+        /* sorry, magic number: enough for tag, len, YYMMDDHHMMSSZ.  I use a
          * temporary buffer because the output buffer is not NULL-terminated.
          */
-        char buf[16];
-        static const DWORD bytesNeeded = sizeof(buf) - 1;
+        static const DWORD bytesNeeded = 15;
+        char buf[40];
 
         if (!pbEncoded)
         {
@@ -3574,11 +3574,11 @@ static BOOL CRYPT_AsnEncodeGeneralizedTime(DWORD dwCertEncodingType,
     __TRY
     {
         SYSTEMTIME sysTime;
-        /* sorry, magic number: enough for tag, len, YYYYMMDDHHMMSSZ\0.  I use a
+        /* sorry, magic number: enough for tag, len, YYYYMMDDHHMMSSZ.  I use a
          * temporary buffer because the output buffer is not NULL-terminated.
          */
-        char buf[18];
-        static const DWORD bytesNeeded = sizeof(buf) - 1;
+        static const DWORD bytesNeeded = 17;
+        char buf[40];
 
         if (!pbEncoded)
         {
index 2a6881b..40d53d2 100644 (file)
@@ -58,7 +58,7 @@ reactos/dll/win32/comctl32            # Synced to WineStaging-2.16
 reactos/dll/win32/comdlg32            # Synced to WineStaging-2.16
 reactos/dll/win32/compstui            # Synced to WineStaging-2.9
 reactos/dll/win32/credui              # Synced to WineStaging-2.9
-reactos/dll/win32/crypt32             # Synced to WineStaging-2.9
+reactos/dll/win32/crypt32             # Synced to WineStaging-2.16
 reactos/dll/win32/cryptdlg            # Synced to WineStaging-2.9
 reactos/dll/win32/cryptdll            # Synced to WineStaging-2.9
 reactos/dll/win32/cryptnet            # Synced to WineStaging-2.9