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
9ccd09bb
Commit
9ccd09bb
authored
Oct 22, 2006
by
Dennis van Amerongen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* backport [17257] back to original DnD and [17259] typo
parent
9d402690
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
modules/gui/wxwidgets/wxwidgets.hpp
modules/gui/wxwidgets/wxwidgets.hpp
+9
-9
No files found.
modules/gui/wxwidgets/wxwidgets.hpp
View file @
9ccd09bb
...
...
@@ -110,8 +110,6 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
/* From Locale functions to use for File Drop targets ... go figure */
#ifdef wxUSE_UNICODE
#include <wchar.h>
static
inline
char
*
wxDnDFromLocale
(
const
wxChar
*
stupid
)
{
/*
...
...
@@ -124,15 +122,17 @@ static inline char *wxDnDFromLocale( const wxChar *stupid )
* UTF-8 but also Windows-1252(!) and ISO-8859-15(!) or any
* non-western encoding, it obviously fails.
*/
size_t
n
=
wcslen
((
const
wchar_t
*
)
stupid
);
char
psz_local
[
n
+
1
];
size_t
i
=
0
;
while
(
stupid
[
i
])
i
++
;
for
(
size_t
i
=
0
;
i
<
n
;
i
++
)
psz_local
[
i
]
=
stupid
[
i
];
char
psz_local
[
i
+
1
];
if
((
i
>=
1
)
&&
(
stupid
[
i
-
1
]
==
'\n'
))
i
--
;
psz_local
[
n
]
=
'\0'
;
if
((
n
>=
1
)
&&
(
stupid
[
n
-
1
]
==
'\n'
))
psz_local
[
n
-
1
]
=
'\0'
;
do
psz_local
[
i
]
=
stupid
[
i
];
while
(
i
--
)
;
return
FromLocaleDup
(
psz_local
);
}
...
...
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