[PATCH] wineandroid.drv: Turn variable 'options' into a static constant

Alex Henrie alexhenrie24 at gmail.com
Mon Dec 3 22:43:00 CST 2018


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 dlls/wineandroid.drv/mmdevdrv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wineandroid.drv/mmdevdrv.c b/dlls/wineandroid.drv/mmdevdrv.c
index 8f428a88f4..3968536601 100644
--- a/dlls/wineandroid.drv/mmdevdrv.c
+++ b/dlls/wineandroid.drv/mmdevdrv.c
@@ -287,8 +287,8 @@ static SLObjectItf outputmix;
 
 HRESULT AUDDRV_Init(void)
 {
+    static const SLEngineOption options[] = { {SL_ENGINEOPTION_THREADSAFE, SL_BOOLEAN_TRUE} };
     SLresult sr;
-    SLEngineOption options[] = { {SL_ENGINEOPTION_THREADSAFE, SL_BOOLEAN_TRUE} };
 
     sr = pslCreateEngine(&sl, 1, options, 0, NULL, NULL);
     if(sr != SL_RESULT_SUCCESS){
-- 
2.19.2




More information about the wine-devel mailing list