Commit f5f890f8 authored by Edward Wang's avatar Edward Wang Committed by Rafaël Carré

waveout: use _snwprintf

Close #6484
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent d1fdb577
...@@ -1066,7 +1066,7 @@ static int ReloadWaveoutDevices( vlc_object_t *p_this, char const *psz_name, ...@@ -1066,7 +1066,7 @@ static int ReloadWaveoutDevices( vlc_object_t *p_this, char const *psz_name,
!= MMSYSERR_NOERROR) != MMSYSERR_NOERROR)
continue; continue;
swprintf(dev_name, MAXPNAMELEN + 32, device_name_fmt, _snwprintf(dev_name, MAXPNAMELEN + 32, device_name_fmt,
caps.szPname, caps.wMid, caps.wPid); caps.szPname, caps.wMid, caps.wPid);
p_item->ppsz_list[j] = FromWide( dev_name ); p_item->ppsz_list[j] = FromWide( dev_name );
p_item->ppsz_list_text[j] = FromWide( dev_name ); p_item->ppsz_list_text[j] = FromWide( dev_name );
...@@ -1104,7 +1104,7 @@ static uint32_t findDeviceID(char *psz_device_name) ...@@ -1104,7 +1104,7 @@ static uint32_t findDeviceID(char *psz_device_name)
!= MMSYSERR_NOERROR ) != MMSYSERR_NOERROR )
continue; continue;
swprintf( dev_name, MAXPNAMELEN + 32, device_name_fmt, _snwprintf( dev_name, MAXPNAMELEN + 32, device_name_fmt,
caps.szPname, caps.wMid, caps.wPid ); caps.szPname, caps.wMid, caps.wPid );
char *u8 = FromWide(dev_name); char *u8 = FromWide(dev_name);
if( !stricmp(u8, psz_device_name) ) if( !stricmp(u8, psz_device_name) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment