Michael Stefaniuc : qcap: Use wide-char string literals.
Alexandre Julliard
julliard at winehq.org
Thu Dec 3 15:35:58 CST 2020
Module: wine
Branch: master
Commit: ab234b54469b14153c8a365965daa59d0339fc0e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ab234b54469b14153c8a365965daa59d0339fc0e
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Fri Nov 27 23:48:40 2020 +0100
qcap: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/qcap/capturegraph.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/qcap/capturegraph.c b/dlls/qcap/capturegraph.c
index b1569bbc3a3..e3f047b9957 100644
--- a/dlls/qcap/capturegraph.c
+++ b/dlls/qcap/capturegraph.c
@@ -371,9 +371,6 @@ static HRESULT match_smart_tee_pin(CaptureGraphImpl *This,
IUnknown *pSource,
IPin **source_out)
{
- static const WCHAR inputW[] = {'I','n','p','u','t',0};
- static const WCHAR captureW[] = {'C','a','p','t','u','r','e',0};
- static const WCHAR previewW[] = {'P','r','e','v','i','e','w',0};
IPin *capture = NULL;
IPin *preview = NULL;
IPin *peer = NULL;
@@ -439,7 +436,7 @@ static HRESULT match_smart_tee_pin(CaptureGraphImpl *This,
hr = IGraphBuilder_AddFilter(This->mygraph, smartTee, NULL);
if (SUCCEEDED(hr)) {
IPin *smartTeeInput = NULL;
- hr = IBaseFilter_FindPin(smartTee, inputW, &smartTeeInput);
+ hr = IBaseFilter_FindPin(smartTee, L"Input", &smartTeeInput);
if (SUCCEEDED(hr)) {
hr = IGraphBuilder_ConnectDirect(This->mygraph, capture, smartTeeInput, NULL);
IPin_Release(smartTeeInput);
@@ -456,9 +453,9 @@ static HRESULT match_smart_tee_pin(CaptureGraphImpl *This,
goto end;
}
if (IsEqualIID(pCategory, &PIN_CATEGORY_CAPTURE))
- hr = IBaseFilter_FindPin(smartTee, captureW, source_out);
+ hr = IBaseFilter_FindPin(smartTee, L"Capture", source_out);
else {
- hr = IBaseFilter_FindPin(smartTee, previewW, source_out);
+ hr = IBaseFilter_FindPin(smartTee, L"Preview", source_out);
if (SUCCEEDED(hr))
hr = VFW_S_NOPREVIEWPIN;
}
More information about the wine-cvs
mailing list