Commit 2c209ccb authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

msg711.acm: Use wide-char string literals.

parent dea1fceb
...@@ -675,10 +675,6 @@ static LRESULT G711_DriverDetails(PACMDRIVERDETAILSW add) ...@@ -675,10 +675,6 @@ static LRESULT G711_DriverDetails(PACMDRIVERDETAILSW add)
*/ */
static LRESULT G711_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery) static LRESULT G711_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery)
{ {
static const WCHAR szPcm[]={'P','C','M',0};
static const WCHAR szALaw[]={'A','-','L','a','w',0};
static const WCHAR szULaw[]={'U','-','L','a','w',0};
switch (dwQuery) switch (dwQuery)
{ {
case ACM_FORMATTAGDETAILSF_INDEX: case ACM_FORMATTAGDETAILSF_INDEX:
...@@ -712,19 +708,19 @@ static LRESULT G711_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery) ...@@ -712,19 +708,19 @@ static LRESULT G711_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery)
aftd->dwFormatTag = WAVE_FORMAT_PCM; aftd->dwFormatTag = WAVE_FORMAT_PCM;
aftd->cbFormatSize = sizeof(PCMWAVEFORMAT); aftd->cbFormatSize = sizeof(PCMWAVEFORMAT);
aftd->cStandardFormats = ARRAY_SIZE(PCM_Formats); aftd->cStandardFormats = ARRAY_SIZE(PCM_Formats);
lstrcpyW(aftd->szFormatTag, szPcm); lstrcpyW(aftd->szFormatTag, L"PCM");
break; break;
case 1: case 1:
aftd->dwFormatTag = WAVE_FORMAT_ALAW; aftd->dwFormatTag = WAVE_FORMAT_ALAW;
aftd->cbFormatSize = sizeof(WAVEFORMATEX); aftd->cbFormatSize = sizeof(WAVEFORMATEX);
aftd->cStandardFormats = ARRAY_SIZE(ALaw_Formats); aftd->cStandardFormats = ARRAY_SIZE(ALaw_Formats);
lstrcpyW(aftd->szFormatTag, szALaw); lstrcpyW(aftd->szFormatTag, L"A-Law");
break; break;
case 2: case 2:
aftd->dwFormatTag = WAVE_FORMAT_MULAW; aftd->dwFormatTag = WAVE_FORMAT_MULAW;
aftd->cbFormatSize = sizeof(WAVEFORMATEX); aftd->cbFormatSize = sizeof(WAVEFORMATEX);
aftd->cStandardFormats = ARRAY_SIZE(ULaw_Formats); aftd->cStandardFormats = ARRAY_SIZE(ULaw_Formats);
lstrcpyW(aftd->szFormatTag, szULaw); lstrcpyW(aftd->szFormatTag, L"U-Law");
break; break;
} }
return MMSYSERR_NOERROR; return MMSYSERR_NOERROR;
......
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