aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2008-12-09 12:31:24 +0000
committerPeter Åstrand <astrand@cendio.se>2008-12-09 12:31:24 +0000
commit2aafb33fed7d4b4ec994ec357b9d6dc8ee0e7bea (patch)
tree78be5995afbab9c4352fa19ee3c793d415e08a73 /win/rfb_win32
parent8ebd542124a6172336b8955f7f969dd99a06c515 (diff)
downloadtigervnc-2aafb33fed7d4b4ec994ec357b9d6dc8ee0e7bea.tar.gz
tigervnc-2aafb33fed7d4b4ec994ec357b9d6dc8ee0e7bea.zip
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
Diffstat (limited to 'win/rfb_win32')
-rw-r--r--win/rfb_win32/Security.cxx2
1 files changed, 1 insertions, 1 deletions
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();
}