[vlc-commits] http access: kill a win32 warning
Jean-Baptiste Kempf
git at videolan.org
Thu Feb 24 13:24:49 CET 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Feb 24 13:23:57 2011 +0100| [a31c7333ce7be88aae2a0daafd7eeeed1d63e0ab] | committer: Jean-Baptiste Kempf
http access: kill a win32 warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a31c7333ce7be88aae2a0daafd7eeeed1d63e0ab
---
modules/access/http.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/access/http.c b/modules/access/http.c
index bd35871..926435d 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -417,10 +417,10 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
0, KEY_READ, &h_key ) == ERROR_SUCCESS )
{
DWORD i_dataReadSize = 4; /* sizeof( DWORD ); */
- DWORD proxyEnable = 0;
+ BYTE proxyEnable = 0;
/* Get the proxy enable value */
if( RegQueryValueEx( h_key, "ProxyEnable", NULL, NULL,
- (char *)&proxyEnable, &i_dataReadSize )
+ &proxyEnable, &i_dataReadSize )
== ERROR_SUCCESS )
{
if( proxyEnable )
@@ -429,7 +429,7 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
char psz_key[256];
i_dataReadSize = 256;
if( RegQueryValueEx( h_key, "ProxyServer",
- NULL, NULL, psz_key,
+ NULL, NULL, (unsigned char *)psz_key,
&i_dataReadSize )
== ERROR_SUCCESS )
{
More information about the vlc-commits
mailing list