Michael Stefaniuc : imaadp32.acm: Use wide-char string literals.

Alexandre Julliard julliard at winehq.org
Fri Oct 2 14:54:08 CDT 2020


Module: wine
Branch: master
Commit: aacc33ba9ed839d5cb3e993cc59dc8a39a62edfb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=aacc33ba9ed839d5cb3e993cc59dc8a39a62edfb

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Oct  1 23:26:28 2020 +0200

imaadp32.acm: Use wide-char string literals.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard 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 a93b5f6af7..b6d70dcbe2 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;




More information about the wine-cvs mailing list