From: Peter Åstrand Date: Tue, 9 Dec 2008 12:31:24 +0000 (+0000) Subject: Corrected invalid conversion from `void*' to `_SECURITY_DESCRIPTOR*': X-Git-Tag: v0.0.90~327 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2aafb33fed7d4b4ec994ec357b9d6dc8ee0e7bea;p=tigervnc.git Corrected invalid conversion from `void*' to `_SECURITY_DESCRIPTOR*': 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 --- diff --git a/win/rfb_win32/Security.cxx b/win/rfb_win32/Security.cxx index b8887a98..95ef1d8a 100644 --- a/win/rfb_win32/Security.cxx +++ b/win/rfb_win32/Security.cxx @@ -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(); }