]> source.dussan.org Git - tigervnc.git/commitdiff
Corrected invalid conversion from `void*' to `_SECURITY_DESCRIPTOR*':
authorPeter Åstrand <astrand@cendio.se>
Tue, 9 Dec 2008 12:31:24 +0000 (12:31 +0000)
committerPeter Åstrand <astrand@cendio.se>
Tue, 9 Dec 2008 12:31:24 +0000 (12:31 +0000)
A SecurityDescriptorPtr is not a PSECURITY_DESCRIPTOR.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3341 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/rfb_win32/Security.cxx

index b8887a981421e2f38cc7882a1442ffd2ff4c1f8b..95ef1d8ad8c9be6c8d17b26946c1bb9868e48178 100644 (file)
@@ -186,7 +186,7 @@ PSECURITY_DESCRIPTOR rfb::win32::CreateSdWithDacl(const PACL dacl) {
     throw rdr::SystemException("SetSecurityDescriptorDacl", GetLastError());
   DWORD sdSize = GetSecurityDescriptorLength(&absSD);
   SecurityDescriptorPtr sd(sdSize);
-  if (!MakeSelfRelativeSD(&absSD, sd, &sdSize))
+  if (!MakeSelfRelativeSD(&absSD, (PSECURITY_DESCRIPTOR)sd.ptr, &sdSize))
     throw rdr::SystemException("MakeSelfRelativeSD", GetLastError());
   return sd.takeSD();
 }