advapi32: Fix printing NULL strings.

This commit is contained in:
Francois Gouget 2011-09-19 23:27:06 +02:00 committed by Alexandre Julliard
parent 6efd90510b
commit ada3d57e83
2 changed files with 4 additions and 4 deletions

View File

@ -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) )
{

View File

@ -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;