[vlc-commits] Update: Correctly cast to (int)

Jean-Baptiste Kempf git at videolan.org
Sat Feb 26 01:46:11 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Feb 26 01:27:51 2011 +0100| [c551d39f7233f8659891e78ed807c4833c2b02e8] | committer: Jean-Baptiste Kempf

Update: Correctly cast to (int)

As specified in the MSDN documentation
It will warn, though

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

 src/misc/update.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/update.c b/src/misc/update.c
index 16aa143..3deaab8 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -724,7 +724,7 @@ static void* update_DownloadReal( vlc_object_t *p_this )
     {
         wchar_t psz_wdestfile[MAX_PATH];
         MultiByteToWideChar( CP_UTF8, 0, psz_destfile, -1, psz_wdestfile, MAX_PATH );
-        answer = ShellExecuteW( NULL, L"open", psz_wdestfile, NULL, NULL, SW_SHOW);
+        answer = (int)ShellExecuteW( NULL, L"open", psz_wdestfile, NULL, NULL, SW_SHOW);
         if(answer > 32)
             libvlc_Quit(p_this->p_libvlc);
     }



More information about the vlc-commits mailing list