qmgr: Constify some variables

Andrew Talbot andrew.talbot at talbotville.com
Thu Jun 19 16:51:55 CDT 2008


Changelog:
    qmgr: Constify some variables.

diff --git a/dlls/qmgr/file.c b/dlls/qmgr/file.c
index 1ca1bf3..622f7a2 100644
--- a/dlls/qmgr/file.c
+++ b/dlls/qmgr/file.c
@@ -368,7 +368,7 @@ static DLBindStatusCallback *DLBindStatusCallbackConstructor(
 
 BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job)
 {
-    static WCHAR prefix[] = {'B','I','T', 0};
+    static const WCHAR prefix[] = {'B','I','T', 0};
     IBindStatusCallback *callbackObj;
     WCHAR tmpDir[MAX_PATH];
     WCHAR tmpName[MAX_PATH];
diff --git a/dlls/qmgr/service.c b/dlls/qmgr/service.c
index 50d5156..b00a922 100644
--- a/dlls/qmgr/service.c
+++ b/dlls/qmgr/service.c
@@ -30,7 +30,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
 
 HANDLE stop_event = NULL;
 
-static WCHAR qmgr_nameW[] = {'B','I','T','S',0};
 static SERVICE_STATUS_HANDLE status_handle;
 static SERVICE_STATUS status;
 
@@ -110,6 +109,7 @@ VOID WINAPI
 ServiceMain(DWORD dwArgc, LPWSTR *lpszArgv)
 {
     HANDLE fileTxThread;
+    static const WCHAR qmgr_nameW[] = {'B','I','T','S',0};
     DWORD threadId;
     TRACE("\n");
 



More information about the wine-patches mailing list