crypt32: Fix printing NULL strings.
authorFrancois Gouget <fgouget@free.fr>
Mon, 19 Sep 2011 21:26:49 +0000 (23:26 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 20 Sep 2011 14:21:38 +0000 (16:21 +0200)
dlls/crypt32/chain.c
dlls/crypt32/oid.c

index 2c6732d5ece42272b1aec84ac46969fd4156c2d5..c5f6742e06f3e939985a890407547f2cc42f40c6 100644 (file)
@@ -1668,7 +1668,7 @@ static LPCSTR filetime_to_str(const FILETIME *time)
     char dateFmt[80]; /* sufficient for all versions of LOCALE_SSHORTDATE */
     SYSTEMTIME sysTime;
 
-    if (!time) return NULL;
+    if (!time) return "(null)";
 
     GetLocaleInfoA(LOCALE_SYSTEM_DEFAULT, LOCALE_SSHORTDATE, dateFmt,
      sizeof(dateFmt) / sizeof(dateFmt[0]));
index 9f998d9ea1df87a7e13d67b811d2648d70db21d4..d6b26f7e9bffe94da358c0885adcbf430306ad37 100644 (file)
@@ -614,8 +614,8 @@ BOOL WINAPI CryptRegisterOIDFunction(DWORD dwEncodingType, LPCSTR pszFuncName,
     HKEY hKey;
     LPSTR szKey;
 
-    TRACE("(%x, %s, %s, %s, %s)\n", dwEncodingType, pszFuncName,
-     debugstr_a(pszOID), debugstr_w(pwszDll), pszOverrideFuncName);
+    TRACE("(%x, %s, %s, %s, %s)\n", dwEncodingType, debugstr_a(pszFuncName),
+          debugstr_a(pszOID), debugstr_w(pwszDll), debugstr_a(pszOverrideFuncName));
 
     /* Native does nothing pwszDll is NULL */
     if (!pwszDll)