Michael Stefaniuc : mfreadwrite: Use wchar string literals instead of temp variables.

Alexandre Julliard julliard at winehq.org
Wed Oct 30 18:40:10 CDT 2019


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Wed Oct 30 00:41:34 2019 +0100

mfreadwrite: Use wchar string literals instead of temp variables.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mfreadwrite/main.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/mfreadwrite/main.c b/dlls/mfreadwrite/main.c
index 6859af8d53..3467746bb8 100644
--- a/dlls/mfreadwrite/main.c
+++ b/dlls/mfreadwrite/main.c
@@ -1123,8 +1123,6 @@ static HRESULT bytestream_get_url_hint(IMFByteStream *stream, WCHAR const **url)
     static const UINT8 asfmagic[] = {0x30,0x26,0xb2,0x75,0x8e,0x66,0xcf,0x11,0xa6,0xd9,0x00,0xaa,0x00,0x62,0xce,0x6c};
     static const UINT8 wavmagic[] = { 'R', 'I', 'F', 'F',0x00,0x00,0x00,0x00, 'W', 'A', 'V', 'E', 'f', 'm', 't', ' '};
     static const UINT8 wavmask[]  = {0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
-    static const WCHAR asfW[] = {'.','a','s','f',0};
-    static const WCHAR wavW[] = {'.','w','a','v',0};
     static const struct stream_content_url_hint
     {
         const UINT8 *magic;
@@ -1134,8 +1132,8 @@ static HRESULT bytestream_get_url_hint(IMFByteStream *stream, WCHAR const **url)
     }
     url_hints[] =
     {
-        { asfmagic, sizeof(asfmagic), asfW },
-        { wavmagic, sizeof(wavmagic), wavW, wavmask },
+        { asfmagic, sizeof(asfmagic), L".asf" },
+        { wavmagic, sizeof(wavmagic), L".wav", wavmask },
     };
     UINT8 buffer[4 * sizeof(unsigned int)];
     IMFAttributes *attributes;




More information about the wine-cvs mailing list