[vlc-devel] commit: unicode support msn plugin (Kaarlo Raiha )

git version control git at videolan.org
Sun Mar 29 21:28:34 CEST 2009


vlc | branch: master | Kaarlo Raiha <kaarlo.raiha at tut.fi> | Sun Mar 29 18:06:20 2009 +0300| [c18658f2d162eef1135dca27adbdeae4cc5e0131] | committer: Jean-Baptiste Kempf 

unicode support msn plugin

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c18658f2d162eef1135dca27adbdeae4cc5e0131
---

 modules/misc/notify/msn.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/misc/notify/msn.c b/modules/misc/notify/msn.c
index d38fcbf..67951bc 100644
--- a/modules/misc/notify/msn.c
+++ b/modules/misc/notify/msn.c
@@ -194,7 +194,9 @@ static int SendToMSN( const char *psz_msg )
 
     wchar_t buffer[MSN_MAX_LENGTH];
 
-    mbstowcs( buffer, psz_msg, MSN_MAX_LENGTH );
+    //mbstowcs( buffer, psz_msg, MSN_MAX_LENGTH );
+    int nLen = MultiByteToWideChar(CP_ACP, 0, psz_msg, -1, NULL, NULL);
+    MultiByteToWideChar(CP_ACP, 0, psz_msg, -1, &buffer, nLen);
 
     msndata.dwData = 0x547;
     msndata.lpData = &buffer;




More information about the vlc-devel mailing list