Author: ekohl
Date: Sun Nov 27 15:49:05 2016
New Revision: 73397
URL: http://svn.reactos.org/svn/reactos?rev=73397&view=rev
Log:
[SERVICES]
RQueryServiceStatusEx and REnumServicesStatusExW: This way it make a lot more sense!
Modified:
trunk/reactos/base/system/services/rpcserver.c
Modified: trunk/reactos/base/system/services/rpcserver.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/rpcse…
==============================================================================
--- trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] Sun Nov 27 15:49:05 2016
@@ -5872,7 +5872,7 @@
sizeof(SERVICE_STATUS));
/* Copy the service process ID */
- if ((lpService->Status.dwCurrentState == SERVICE_STOPPED) || (lpService->lpImage != NULL))
+ if ((lpService->Status.dwCurrentState == SERVICE_STOPPED) || (lpService->lpImage == NULL))
lpStatus->dwProcessId = 0;
else
lpStatus->dwProcessId = lpService->lpImage->dwProcessId;
@@ -6283,7 +6283,7 @@
sizeof(SERVICE_STATUS));
/* Copy the service process ID */
- if ((CurrentService->Status.dwCurrentState == SERVICE_STOPPED) ||(CurrentService->lpImage != NULL))
+ if ((CurrentService->Status.dwCurrentState == SERVICE_STOPPED) ||(CurrentService->lpImage == NULL))
lpStatusPtr->ServiceStatusProcess.dwProcessId = 0;
else
lpStatusPtr->ServiceStatusProcess.dwProcessId = CurrentService->lpImage->dwProcessId;