Commit fb5766e3 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

macosx: fixed potential crashes when localizing strings

parent c2e39623
......@@ -48,7 +48,7 @@ unsigned int CocoaKeyToVLC( unichar i_key );
#define VLCIntf [[VLCMain sharedInstance] intf]
#define _NS(s) [[VLCMain sharedInstance] localizedString: _(s)]
#define _NS(s) [[VLCMain sharedInstance] localizedString: s]
/* Get an alternate version of the string.
* This string is stored as '1:string' but when displayed it only displays
* the translated string. the translation should be '1:translatedstring' though */
......@@ -1000,7 +1000,7 @@ static VLCMain *_o_sharedMainInstance = nil;
if( psz != NULL )
o_str = [NSString stringWithCString: psz encoding:NSUTF8StringEncoding];
o_str = [NSString stringWithCString: _(psz) encoding:NSUTF8StringEncoding];
if( o_str == NULL )
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