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
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();
}