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

Alexandre Julliard julliard at winehq.org
Mon Oct 5 15:54:57 CDT 2020


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Sat Oct  3 20:28:22 2020 +0200

msg711.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/msg711.acm/msg711.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/dlls/msg711.acm/msg711.c b/dlls/msg711.acm/msg711.c
index 6909494e29..7478bfd92a 100644
--- a/dlls/msg711.acm/msg711.c
+++ b/dlls/msg711.acm/msg711.c
@@ -675,10 +675,6 @@ static	LRESULT G711_DriverDetails(PACMDRIVERDETAILSW add)
  */
 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)
     {
     case ACM_FORMATTAGDETAILSF_INDEX:
@@ -712,19 +708,19 @@ static	LRESULT	G711_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_ALAW;
 	aftd->cbFormatSize = sizeof(WAVEFORMATEX);
 	aftd->cStandardFormats = ARRAY_SIZE(ALaw_Formats);
-        lstrcpyW(aftd->szFormatTag, szALaw);
+        lstrcpyW(aftd->szFormatTag, L"A-Law");
 	break;
     case 2:
 	aftd->dwFormatTag = WAVE_FORMAT_MULAW;
 	aftd->cbFormatSize = sizeof(WAVEFORMATEX);
 	aftd->cStandardFormats = ARRAY_SIZE(ULaw_Formats);
-        lstrcpyW(aftd->szFormatTag, szULaw);
+        lstrcpyW(aftd->szFormatTag, L"U-Law");
 	break;
     }
     return MMSYSERR_NOERROR;




More information about the wine-cvs mailing list