mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Fix compilation error on MinGW.
MinGW has nonstandard definition of PSECURITY_DESCRIPTOR, which requires a cast when calling WinAPI functions InitializeSecurityDescriptor and SetSecurityDescriptorDacl. This is done by Boost.WinAPI wrapper functions. Fixes https://github.com/boostorg/interprocess/issues/118.
This commit is contained in:
@@ -716,9 +716,9 @@ class interprocess_all_access_security
|
||||
interprocess_all_access_security()
|
||||
: initialized(false)
|
||||
{
|
||||
if(!InitializeSecurityDescriptor(&sd, security_descriptor_revision))
|
||||
if(!boost::winapi::InitializeSecurityDescriptor(&sd, security_descriptor_revision))
|
||||
return;
|
||||
if(!::SetSecurityDescriptorDacl(&sd, true, 0, false))
|
||||
if(!boost::winapi::SetSecurityDescriptorDacl(&sd, true, 0, false))
|
||||
return;
|
||||
sa.lpSecurityDescriptor = &sd;
|
||||
sa.nLength = sizeof(interprocess_security_attributes);
|
||||
|
||||
Reference in New Issue
Block a user