This commit is contained in:
sspitzer%netscape.com 2000-06-23 01:08:53 +00:00
Родитель 6898d89558
Коммит c338f7497b
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -117,6 +117,11 @@ nsresult nsInternetConfig::GetString( unsigned char* inKey, char** outString )
err = ::ICGetPref( instance, inKey, &junk, buffer, &size );
if ( err == noErr )
{
if (size == 0) {
*outString = nsnull;
return NS_OK;
}
// Buffer is a Pascal string
nsCString temp( &buffer[1], buffer[0] );
*outString = temp.ToNewCString();

Просмотреть файл

@ -117,6 +117,11 @@ nsresult nsInternetConfig::GetString( unsigned char* inKey, char** outString )
err = ::ICGetPref( instance, inKey, &junk, buffer, &size );
if ( err == noErr )
{
if (size == 0) {
*outString = nsnull;
return NS_OK;
}
// Buffer is a Pascal string
nsCString temp( &buffer[1], buffer[0] );
*outString = temp.ToNewCString();