Francois Gouget : advapi32: Fix printing NULL strings.

Alexandre Julliard julliard at winehq.org
Tue Sep 20 13:08:34 CDT 2011


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Sep 19 23:27:06 2011 +0200

advapi32: Fix printing NULL strings.

---

 dlls/advapi32/crypt.c    |    4 ++--
 dlls/advapi32/registry.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/advapi32/crypt.c b/dlls/advapi32/crypt.c
index f0f19ee..31260a8 100644
--- a/dlls/advapi32/crypt.c
+++ b/dlls/advapi32/crypt.c
@@ -545,8 +545,8 @@ BOOL WINAPI CryptAcquireContextA (HCRYPTPROV *phProv, LPCSTR pszContainer,
 	PWSTR pProvider = NULL, pContainer = NULL;
 	BOOL ret = FALSE;
 
-	TRACE("(%p, %s, %s, %d, %08x)\n", phProv, pszContainer,
-		pszProvider, dwProvType, dwFlags);
+	TRACE("(%p, %s, %s, %d, %08x)\n", phProv, debugstr_a(pszContainer),
+              debugstr_a(pszProvider), dwProvType, dwFlags);
 
 	if ( !CRYPT_ANSIToUnicode(pszContainer, &pContainer, -1) )
 	{
diff --git a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c
index d5c4164..758ba08 100644
--- a/dlls/advapi32/registry.c
+++ b/dlls/advapi32/registry.c
@@ -1739,8 +1739,8 @@ LSTATUS WINAPI RegGetValueA( HKEY hKey, LPCSTR pszSubKey, LPCSTR pszValue,
     LONG ret;
 
     TRACE("(%p,%s,%s,%d,%p,%p,%p=%d)\n", 
-          hKey, pszSubKey, pszValue, dwFlags, pdwType, pvData, pcbData,
-          cbData);
+          hKey, debugstr_a(pszSubKey), debugstr_a(pszValue), dwFlags,
+          pdwType, pvData, pcbData, cbData);
 
     if (pvData && !pcbData)
         return ERROR_INVALID_PARAMETER;




More information about the wine-cvs mailing list