[PATCH] imaadp32.acm: Use wide-char string literals.
Michael Stefaniuc
mstefani at winehq.org
Thu Oct 1 16:26:28 CDT 2020
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/imaadp32.acm/imaadp32.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/imaadp32.acm/imaadp32.c b/dlls/imaadp32.acm/imaadp32.c
index a93b5f6af7c..b6d70dcbe2f 100644
--- a/dlls/imaadp32.acm/imaadp32.c
+++ b/dlls/imaadp32.acm/imaadp32.c
@@ -548,9 +548,6 @@ static LRESULT ADPCM_DriverDetails(PACMDRIVERDETAILSW add)
*/
static LRESULT ADPCM_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery)
{
- static const WCHAR szPcm[]={'P','C','M',0};
- static const WCHAR szImaAdPcm[]={'I','M','A',' ','A','D','P','C','M',0};
-
switch (dwQuery)
{
case ACM_FORMATTAGDETAILSF_INDEX:
@@ -583,13 +580,13 @@ static LRESULT ADPCM_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery)
aftd->dwFormatTag = WAVE_FORMAT_PCM;
aftd->cbFormatSize = sizeof(PCMWAVEFORMAT);
aftd->cStandardFormats = ARRAY_SIZE(PCM_Formats);
- lstrcpyW(aftd->szFormatTag, szPcm);
+ lstrcpyW(aftd->szFormatTag, L"PCM");
break;
case 1:
aftd->dwFormatTag = WAVE_FORMAT_IMA_ADPCM;
aftd->cbFormatSize = sizeof(IMAADPCMWAVEFORMAT);
aftd->cStandardFormats = ARRAY_SIZE(ADPCM_Formats);
- lstrcpyW(aftd->szFormatTag, szImaAdPcm);
+ lstrcpyW(aftd->szFormatTag, L"IMA ADPCM");
break;
}
return MMSYSERR_NOERROR;
--
2.26.2
More information about the wine-devel
mailing list