Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
fb5766e3
Commit
fb5766e3
authored
Jan 29, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed potential crashes when localizing strings
parent
c2e39623
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+1
-1
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+1
-1
No files found.
modules/gui/macosx/intf.h
View file @
fb5766e3
...
@@ -48,7 +48,7 @@ unsigned int CocoaKeyToVLC( unichar i_key );
...
@@ -48,7 +48,7 @@ unsigned int CocoaKeyToVLC( unichar i_key );
#define VLCIntf [[VLCMain sharedInstance] intf]
#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.
/* Get an alternate version of the string.
* This string is stored as '1:string' but when displayed it only displays
* This string is stored as '1:string' but when displayed it only displays
* the translated string. the translation should be '1:translatedstring' though */
* the translated string. the translation should be '1:translatedstring' though */
...
...
modules/gui/macosx/intf.m
View file @
fb5766e3
...
@@ -1000,7 +1000,7 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -1000,7 +1000,7 @@ static VLCMain *_o_sharedMainInstance = nil;
if
(
psz
!=
NULL
)
if
(
psz
!=
NULL
)
{
{
o_str
=
[
NSString
stringWithCString
:
psz
encoding
:
NSUTF8StringEncoding
];
o_str
=
[
NSString
stringWithCString
:
_
(
psz
)
encoding
:
NSUTF8StringEncoding
];
if
(
o_str
==
NULL
)
if
(
o_str
==
NULL
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment