[PATCH] winspool.drv: Make constant 'fmtW' static

Alex Henrie alexhenrie24 at gmail.com
Sun Dec 2 17:06:39 CST 2018


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

diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index fb268a047f..e91138dbec 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -8208,8 +8208,8 @@ end:
  */
 static BOOL schedule_lpr(LPCWSTR printer_name, LPCWSTR filename)
 {
+    static const WCHAR fmtW[] = {'l','p','r',' ','-','P','\'','%','s','\'',0};
     WCHAR *cmd;
-    const WCHAR fmtW[] = {'l','p','r',' ','-','P','\'','%','s','\'',0};
     BOOL r;
 
     cmd = HeapAlloc(GetProcessHeap(), 0, strlenW(printer_name) * sizeof(WCHAR) + sizeof(fmtW));
-- 
2.19.2




More information about the wine-devel mailing list