From 6e538b4020be19a4381830b5d5d3d06bc4d7e841 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 3 Mar 2015 16:48:01 +0100 Subject: [PATCH] Fix bad initialiser lists --- vncviewer/parameters.cxx | 4 ++-- win/rfb_win32/Security.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vncviewer/parameters.cxx b/vncviewer/parameters.cxx index 713ac070..712a257a 100644 --- a/vncviewer/parameters.cxx +++ b/vncviewer/parameters.cxx @@ -182,8 +182,8 @@ static VoidParameter* parameterArray[] = { static struct { const char first; const char second; -} replaceMap[] = {'\n', 'n', - '\r', 'r'}; +} replaceMap[] = { { '\n', 'n' }, + { '\r', 'r' } }; static bool encodeValue(const char* val, char* dest, size_t destSize) { diff --git a/win/rfb_win32/Security.cxx b/win/rfb_win32/Security.cxx index b4e93530..cad13256 100644 --- a/win/rfb_win32/Security.cxx +++ b/win/rfb_win32/Security.cxx @@ -122,7 +122,7 @@ void Sid::getUserNameAndDomain(TCHAR** name, TCHAR** domain) { Sid::Administrators::Administrators() { PSID sid = 0; - SID_IDENTIFIER_AUTHORITY ntAuth = SECURITY_NT_AUTHORITY; + SID_IDENTIFIER_AUTHORITY ntAuth = { SECURITY_NT_AUTHORITY }; if (!AllocateAndInitializeSid(&ntAuth, 2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, @@ -134,7 +134,7 @@ Sid::Administrators::Administrators() { Sid::SYSTEM::SYSTEM() { PSID sid = 0; - SID_IDENTIFIER_AUTHORITY ntAuth = SECURITY_NT_AUTHORITY; + SID_IDENTIFIER_AUTHORITY ntAuth = { SECURITY_NT_AUTHORITY }; if (!AllocateAndInitializeSid(&ntAuth, 1, SECURITY_LOCAL_SYSTEM_RID, 0, 0, 0, 0, 0, 0, 0, &sid)) -- 2.39.5