Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8744dc30
Commit
8744dc30
authored
Jul 26, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MSN: (hopefully) correct non-ASCII characters (fixes #3952)
VLC code page is
UTF-8
, not ANSI.
parent
fef50057
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
modules/misc/notify/msn.c
modules/misc/notify/msn.c
+7
-8
No files found.
modules/misc/notify/msn.c
View file @
8744dc30
...
...
@@ -35,6 +35,7 @@
#include <vlc_meta.h>
#include <vlc_playlist.h>
#include <vlc_strings.h>
#include <vlc_charset.h>
/*****************************************************************************
* intf_sys_t: description and status of log interface
...
...
@@ -181,20 +182,18 @@ static int SendToMSN( const char *psz_msg )
COPYDATASTRUCT
msndata
;
HWND
msnui
=
NULL
;
wchar_t
buffer
[
MSN_MAX_LENGTH
];
//mbstowcs( buffer, psz_msg, MSN_MAX_LENGTH );
int
nLen
=
MultiByteToWideChar
(
CP_ACP
,
0
,
psz_msg
,
-
1
,
NULL
,
0
);
MultiByteToWideChar
(
CP_ACP
,
0
,
psz_msg
,
-
1
,
&
buffer
,
nLen
);
wchar_t
*
wmsg
=
ToWide
(
psz_msg
);
if
(
unlikely
(
wmsg
==
NULL
)
)
return
VLC_ENOMEM
;
msndata
.
dwData
=
0x547
;
msndata
.
lpData
=
&
buffer
;
msndata
.
cbData
=
(
lstrlenW
(
buffer
)
*
2
)
+
2
;
msndata
.
lpData
=
wmsg
;
msndata
.
cbData
=
(
wcslen
(
wmsg
)
+
1
)
*
2
;
while
(
(
msnui
=
FindWindowEx
(
NULL
,
msnui
,
"MsnMsgrUIManager"
,
NULL
)
)
)
{
SendMessage
(
msnui
,
WM_COPYDATA
,
(
WPARAM
)
NULL
,
(
LPARAM
)
&
msndata
);
}
free
(
wmsg
);
return
VLC_SUCCESS
;
}
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