Made PipeAccessRights explicit to get around Mono fail.

This commit is contained in:
Matthew Bowra-Dean
2010-11-27 18:17:03 +13:00
committed by Paul Chote
parent f768f8d969
commit 583fa0aa39

View File

@@ -55,7 +55,7 @@ namespace OpenRA.Utility
if (principal.IsInRole(WindowsBuiltInRole.Administrator)) if (principal.IsInRole(WindowsBuiltInRole.Administrator))
{ {
var ps = new PipeSecurity(); var ps = new PipeSecurity();
ps.AddAccessRule(new PipeAccessRule("EVERYONE", PipeAccessRights.FullControl, System.Security.AccessControl.AccessControlType.Allow)); ps.AddAccessRule(new PipeAccessRule("EVERYONE", (PipeAccessRights)2032031, System.Security.AccessControl.AccessControlType.Allow));
pipe = new NamedPipeServerStream("OpenRA.Utility", PipeDirection.Out, 1, PipeTransmissionMode.Byte, PipeOptions.None, 1024, 1024, ps); pipe = new NamedPipeServerStream("OpenRA.Utility", PipeDirection.Out, 1, PipeTransmissionMode.Byte, PipeOptions.None, 1024, 1024, ps);
} }
else else