Fix type in dlls/crypt32/base64.c

Gerald Pfeifer gerald at pfeifer.com
Thu Mar 25 16:55:14 CDT 2010


I believe this was added yesterday.  empty is being assigned to LPCWSTR 
sep later on, which won't really work properly if it is only of type 
WCHAR.

Gerald


ChangeLog:
Fix type of empty in encodeBase64W().

diff --git a/dlls/crypt32/base64.c b/dlls/crypt32/base64.c
index 2996ba3..2cda83e 100644
--- a/dlls/crypt32/base64.c
+++ b/dlls/crypt32/base64.c
@@ -365,7 +365,8 @@ static LONG encodeBase64W(const BYTE *in_buf, int in_len, LPCWSTR sep,
 static BOOL BinaryToBase64W(const BYTE *pbBinary,
  DWORD cbBinary, DWORD dwFlags, LPWSTR pszString, DWORD *pcchString)
 {
-    static const WCHAR crlf[] = { '\r','\n',0 }, lf[] = { '\n',0 }, empty = {0};
+    static const WCHAR crlf[] = { '\r','\n',0 }, lf[] = { '\n',0 },
+                       empty[] = {0};
     BOOL ret = TRUE;
     LPCWSTR header = NULL, trailer = NULL, sep;
     DWORD charsNeeded;



More information about the wine-patches mailing list