[PATCH 1/4] wineqtdecoder: Do not use wide string literals to fix warning.
Gijs Vermeulen
gijsvrm at gmail.com
Fri May 1 12:36:22 CDT 2020
Signed-off-by: Gijs Vermeulen <gijsvrm at gmail.com>
---
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,
--
2.26.1
More information about the wine-devel
mailing list