Alex Henrie : secur32: Turn variables 'bs' and 'ds' into static constants.
Alexandre Julliard
julliard at winehq.org
Fri Nov 30 14:34:41 CST 2018
Module: wine
Branch: master
Commit: 639243192e0629858b7912aabec75e3c32e66bd4
URL: https://source.winehq.org/git/wine.git/?a=commit;h=639243192e0629858b7912aabec75e3c32e66bd4
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Fri Nov 30 00:14:18 2018 -0700
secur32: Turn variables 'bs' and 'ds' into static constants.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 ec189fd..b3ab80a 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);
More information about the wine-cvs
mailing list