You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
@@ -390,17 +390,17 @@ namespace System.ServiceProcess
|
||||
throw new Win32Exception (err);
|
||||
}
|
||||
} else {
|
||||
int iPtr = buffer.ToInt32 ();
|
||||
IntPtr iPtr = buffer;
|
||||
|
||||
services = new ServiceController [servicesReturned];
|
||||
for (int i = 0; i < servicesReturned; i++) {
|
||||
ENUM_SERVICE_STATUS serviceStatus = (ENUM_SERVICE_STATUS) Marshal.PtrToStructure (
|
||||
new IntPtr (iPtr), typeof (ENUM_SERVICE_STATUS));
|
||||
iPtr, typeof (ENUM_SERVICE_STATUS));
|
||||
// TODO: use internal ctor that takes displayname too ?
|
||||
services [i] = new ServiceController (serviceStatus.pServiceName,
|
||||
machineName);
|
||||
// move on to the next services
|
||||
iPtr += ENUM_SERVICE_STATUS.SizeOf;
|
||||
iPtr = IntPtr.Add(iPtr, ENUM_SERVICE_STATUS.SizeOf);
|
||||
}
|
||||
|
||||
// we're done, so exit the loop
|
||||
@@ -611,17 +611,17 @@ namespace System.ServiceProcess
|
||||
throw new Win32Exception (err);
|
||||
}
|
||||
} else {
|
||||
int iPtr = buffer.ToInt32 ();
|
||||
IntPtr iPtr = buffer;
|
||||
|
||||
services = new ServiceController [servicesReturned];
|
||||
for (int i = 0; i < servicesReturned; i++) {
|
||||
ENUM_SERVICE_STATUS_PROCESS serviceStatus = (ENUM_SERVICE_STATUS_PROCESS) Marshal.PtrToStructure (
|
||||
new IntPtr (iPtr), typeof (ENUM_SERVICE_STATUS_PROCESS));
|
||||
iPtr, typeof (ENUM_SERVICE_STATUS_PROCESS));
|
||||
// TODO: use internal ctor that takes displayname too
|
||||
services [i] = new ServiceController (serviceStatus.pServiceName,
|
||||
machineName);
|
||||
// move on to the next services
|
||||
iPtr += ENUM_SERVICE_STATUS_PROCESS.SizeOf;
|
||||
iPtr = IntPtr.Add(iPtr, ENUM_SERVICE_STATUS_PROCESS.SizeOf);
|
||||
}
|
||||
|
||||
// we're done, so exit the loop
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
../../test-helpers/NunitHelpers.cs
|
||||
System.ServiceProcess/ServiceBaseTest.cs
|
||||
System.ServiceProcess/ServiceControllerTest.cs
|
||||
System.ServiceProcess/ServiceControllerPermissionAttributeTest.cs
|
||||
|
||||
@@ -1 +1 @@
|
||||
8f5b8f6000b50c1927c8e79c4b36e834fa09ca5b
|
||||
17f7be4bbd84435420955bcc2deec4658a13005f
|
||||
Reference in New Issue
Block a user