aboutsummaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-03 16:48:01 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-03 16:48:01 +0100
commit6e538b4020be19a4381830b5d5d3d06bc4d7e841 (patch)
tree8db96ead3a0b551792520856bf7000024b71bc5a /win
parent4c33d0bd98e6f3ddfb368917952b9a8d85594229 (diff)
downloadtigervnc-6e538b4020be19a4381830b5d5d3d06bc4d7e841.tar.gz
tigervnc-6e538b4020be19a4381830b5d5d3d06bc4d7e841.zip
Fix bad initialiser lists
Diffstat (limited to 'win')
-rw-r--r--win/rfb_win32/Security.cxx4
1 files changed, 2 insertions, 2 deletions
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))