fixing mac and unix bustage
git-svn-id: svn://10.0.0.236/trunk@60787 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -614,7 +614,8 @@ NS_IMETHODIMP nsRegistry::GetString(nsRegistryKey baseKey, const PRUnichar *valn
|
||||
rv = GetStringUTF8( baseKey, utf8name, &tmpstr );
|
||||
if (NS_SUCCEEDED(rv))
|
||||
{
|
||||
*_retval = nsTextFormatter::smprintf( L"%s", tmpstr );
|
||||
nsString tmpfmt("%s");
|
||||
*_retval = nsTextFormatter::smprintf( tmpfmt.GetUnicode(), tmpstr );
|
||||
nsCRT::free(tmpstr);
|
||||
if ( *_retval == nsnull )
|
||||
rv = NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
@@ -614,7 +614,8 @@ NS_IMETHODIMP nsRegistry::GetString(nsRegistryKey baseKey, const PRUnichar *valn
|
||||
rv = GetStringUTF8( baseKey, utf8name, &tmpstr );
|
||||
if (NS_SUCCEEDED(rv))
|
||||
{
|
||||
*_retval = nsTextFormatter::smprintf( L"%s", tmpstr );
|
||||
nsString tmpfmt("%s");
|
||||
*_retval = nsTextFormatter::smprintf( tmpfmt.GetUnicode(), tmpstr );
|
||||
nsCRT::free(tmpstr);
|
||||
if ( *_retval == nsnull )
|
||||
rv = NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
Reference in New Issue
Block a user