[PATCH] secur32: Turn variables 'bs' and 'ds' into static constants

Alex Henrie alexhenrie24 at gmail.com
Fri Nov 30 01:14:18 CST 2018


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 dlls/secur32/secur32.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/secur32/secur32.c b/dlls/secur32/secur32.c
index ec189fda10..b3ab80a850 100644
--- a/dlls/secur32/secur32.c
+++ b/dlls/secur32/secur32.c
@@ -1001,8 +1001,8 @@ BOOLEAN WINAPI GetComputerObjectNameW(
                     DWORD len = domainInfo->Name.Length + size + 3;
                     if (lpNameBuffer && *nSize >= len)
                     {
-                        WCHAR bs[] = { '\\', 0 };
-                        WCHAR ds[] = { '$', 0 };
+                        static const WCHAR bs[] = { '\\', 0 };
+                        static const WCHAR ds[] = { '$', 0 };
                         if (domainInfo->Name.Buffer)
                         {
                             lstrcpyW(lpNameBuffer, domainInfo->Name.Buffer);
-- 
2.19.2




More information about the wine-devel mailing list