Commit a4bb485f authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

quartztext: fix a crash when we tried to find the lenght of a CFString that was not created.

(Another bug fixed due to the great new apple-bugreport mailinglist)
parent 477c89fd
......@@ -365,6 +365,9 @@ static void ConvertToUTF16( const char *psz_utf8_str, uint32_t *pi_strlen, UniCh
int i_string_length;
p_cfString = CFStringCreateWithCString( NULL, psz_utf8_str, kCFStringEncodingUTF8 );
if( !p_cfString )
i_string_length = CFStringGetLength( p_cfString );
if( pi_strlen )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment