Alex Henrie : winspool.drv: Make constant 'fmtW' static.

Alexandre Julliard julliard at winehq.org
Mon Dec 3 15:28:53 CST 2018


Module: wine
Branch: master
Commit: 4761c367e09f9268978388a5ce89459c8b476af6
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4761c367e09f9268978388a5ce89459c8b476af6

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Sun Dec  2 16:06:39 2018 -0700

winspool.drv: Make constant 'fmtW' static.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 fb268a0..e91138d 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));




More information about the wine-cvs mailing list