[PATCH] qcap: Make constants 'msg' and 'VFWIndex' static

Alex Henrie alexhenrie24 at gmail.com
Mon Dec 3 22:42:58 CST 2018


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 dlls/qcap/v4l.c        | 2 +-
 dlls/qcap/vfwcapture.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c
index b4b7b96c9e..80b0fe82d8 100644
--- a/dlls/qcap/v4l.c
+++ b/dlls/qcap/v4l.c
@@ -915,7 +915,7 @@ error:
 
 Capture * qcap_driver_init( IPin *pOut, USHORT card )
 {
-    const char msg[] = 
+    static const char msg[] =
         "The v4l headers were not available at compile time,\n"
         "so video capture support is not available.\n";
     MESSAGE(msg);
diff --git a/dlls/qcap/vfwcapture.c b/dlls/qcap/vfwcapture.c
index ca804fe095..6297a80e61 100644
--- a/dlls/qcap/vfwcapture.c
+++ b/dlls/qcap/vfwcapture.c
@@ -524,10 +524,10 @@ static HRESULT WINAPI
 PPB_Load( IPersistPropertyBag * iface, IPropertyBag *pPropBag,
           IErrorLog *pErrorLog )
 {
+    static const OLECHAR VFWIndex[] = {'V','F','W','I','n','d','e','x',0};
     VfwCapture *This = impl_from_IPersistPropertyBag(iface);
     HRESULT hr;
     VARIANT var;
-    const OLECHAR VFWIndex[] = {'V','F','W','I','n','d','e','x',0};
 
     TRACE("%p/%p-> (%p, %p)\n", iface, This, pPropBag, pErrorLog);
 
-- 
2.19.2




More information about the wine-devel mailing list