Gijs Vermeulen : wineqtdecoder: Do not use wide string literals to fix warning.
Alexandre Julliard
julliard at winehq.org
Fri May 1 16:17:51 CDT 2020
Module: wine
Branch: master
Commit: 49f85ecbc4e6faafc1d63db0927aa4ef6d0f1a12
URL: https://source.winehq.org/git/wine.git/?a=commit;h=49f85ecbc4e6faafc1d63db0927aa4ef6d0f1a12
Author: Gijs Vermeulen <gijsvrm at gmail.com>
Date: Fri May 1 19:36:22 2020 +0200
wineqtdecoder: Do not use wide string literals to fix warning.
Signed-off-by: Gijs Vermeulen <gijsvrm at gmail.com>
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wineqtdecoder/qtvdecoder.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/wineqtdecoder/qtvdecoder.c b/dlls/wineqtdecoder/qtvdecoder.c
index 031b08e1de..a86cd432c2 100644
--- a/dlls/wineqtdecoder/qtvdecoder.c
+++ b/dlls/wineqtdecoder/qtvdecoder.c
@@ -602,6 +602,8 @@ static const struct strmbase_filter_ops filter_ops =
HRESULT video_decoder_create(IUnknown *outer, IUnknown **out)
{
+ static const WCHAR inW[] = { 'I','n',0 };
+ static const WCHAR outW[] = { 'O','u','t',0 };
QTVDecoderImpl *object;
HRESULT hr;
ISeekingPassThru *passthrough;
@@ -614,9 +616,9 @@ HRESULT video_decoder_create(IUnknown *outer, IUnknown **out)
InitializeCriticalSection(&object->stream_cs);
object->stream_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__": QTVDecoderImpl.stream_cs");
- strmbase_sink_init(&object->sink, &object->filter, L"In", &sink_ops, NULL);
+ strmbase_sink_init(&object->sink, &object->filter, inW, &sink_ops, NULL);
- strmbase_source_init(&object->source, &object->filter, L"Out", &source_ops);
+ strmbase_source_init(&object->source, &object->filter, outW, &source_ops);
if (FAILED(hr = CoCreateInstance(&CLSID_SeekingPassThru,
(IUnknown *)&object->source.pin.IPin_iface, CLSCTX_INPROC_SERVER,
More information about the wine-cvs
mailing list