mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 21:22:24 +00:00
[SERVICES]
Fix an MSVC warning svn path=/trunk/; revision=52719
This commit is contained in:
parent
b38aed5d19
commit
71842f91e6
1 changed files with 8 additions and 8 deletions
|
@ -586,7 +586,7 @@ DWORD RControlService(
|
||||||
lpService = hSvc->ServiceEntry;
|
lpService = hSvc->ServiceEntry;
|
||||||
if (lpService == NULL)
|
if (lpService == NULL)
|
||||||
{
|
{
|
||||||
DPRINT1("lpService == NULL!\n");
|
DPRINT1("lpService == NULL!\n");
|
||||||
return ERROR_INVALID_HANDLE;
|
return ERROR_INVALID_HANDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -973,7 +973,7 @@ DWORD RSetServiceObjectSecurity(
|
||||||
TRUE,
|
TRUE,
|
||||||
&hToken);
|
&hToken);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
return RtlNtStatusToDosError(Status);
|
return RtlNtStatusToDosError(Status);
|
||||||
|
|
||||||
RpcRevertToSelf();
|
RpcRevertToSelf();
|
||||||
|
|
||||||
|
@ -1602,7 +1602,7 @@ ScmConvertToBootPathName(wchar_t *CanonName, wchar_t **RelativeName)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do a real query now */
|
/* Do a real query now */
|
||||||
LinkTarget.Length = BufferSize;
|
LinkTarget.Length = (USHORT)BufferSize;
|
||||||
LinkTarget.MaximumLength = LinkTarget.Length + sizeof(WCHAR);
|
LinkTarget.MaximumLength = LinkTarget.Length + sizeof(WCHAR);
|
||||||
|
|
||||||
Status = NtQuerySymbolicLinkObject(SymbolicLinkHandle, &LinkTarget, &BufferSize);
|
Status = NtQuerySymbolicLinkObject(SymbolicLinkHandle, &LinkTarget, &BufferSize);
|
||||||
|
@ -2491,7 +2491,7 @@ DWORD REnumServicesStatusW(
|
||||||
dwRequiredSize += dwSize;
|
dwRequiredSize += dwSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dwError == 0)
|
if (dwError == 0)
|
||||||
{
|
{
|
||||||
*pcbBytesNeeded = 0;
|
*pcbBytesNeeded = 0;
|
||||||
if (lpResumeHandle) *lpResumeHandle = 0;
|
if (lpResumeHandle) *lpResumeHandle = 0;
|
||||||
|
@ -3705,7 +3705,7 @@ DWORD REnumServicesStatusA(
|
||||||
lpStatusPtrA = (LPENUM_SERVICE_STATUSA)lpBuffer;
|
lpStatusPtrA = (LPENUM_SERVICE_STATUSA)lpBuffer;
|
||||||
lpStringPtrA = (LPSTR)((ULONG_PTR)lpBuffer +
|
lpStringPtrA = (LPSTR)((ULONG_PTR)lpBuffer +
|
||||||
*lpServicesReturned * sizeof(ENUM_SERVICE_STATUSA));
|
*lpServicesReturned * sizeof(ENUM_SERVICE_STATUSA));
|
||||||
lpStringPtrW = (LPWSTR)((ULONG_PTR)lpStatusPtrW +
|
lpStringPtrW = (LPWSTR)((ULONG_PTR)lpStatusPtrW +
|
||||||
*lpServicesReturned * sizeof(ENUM_SERVICE_STATUSW));
|
*lpServicesReturned * sizeof(ENUM_SERVICE_STATUSW));
|
||||||
|
|
||||||
for (dwServiceCount = 0; dwServiceCount < *lpServicesReturned; dwServiceCount++)
|
for (dwServiceCount = 0; dwServiceCount < *lpServicesReturned; dwServiceCount++)
|
||||||
|
@ -4786,7 +4786,7 @@ DWORD RQueryServiceConfig2W(
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
lpFailureActions->cActions = 0;
|
lpFailureActions->cActions = 0;
|
||||||
lpFailureActions->dwResetPeriod = 0;
|
lpFailureActions->dwResetPeriod = 0;
|
||||||
lpFailureActions->lpCommand = NULL;
|
lpFailureActions->lpCommand = NULL;
|
||||||
lpFailureActions->lpRebootMsg = NULL;
|
lpFailureActions->lpRebootMsg = NULL;
|
||||||
|
@ -4966,7 +4966,7 @@ DWORD REnumServicesStatusExA(
|
||||||
lpStatusPtrA = (LPENUM_SERVICE_STATUS_PROCESSA)lpBuffer;
|
lpStatusPtrA = (LPENUM_SERVICE_STATUS_PROCESSA)lpBuffer;
|
||||||
lpStringPtrA = (LPSTR)((ULONG_PTR)lpBuffer +
|
lpStringPtrA = (LPSTR)((ULONG_PTR)lpBuffer +
|
||||||
*lpServicesReturned * sizeof(ENUM_SERVICE_STATUS_PROCESSA));
|
*lpServicesReturned * sizeof(ENUM_SERVICE_STATUS_PROCESSA));
|
||||||
lpStringPtrW = (LPWSTR)((ULONG_PTR)lpStatusPtrW +
|
lpStringPtrW = (LPWSTR)((ULONG_PTR)lpStatusPtrW +
|
||||||
*lpServicesReturned * sizeof(ENUM_SERVICE_STATUS_PROCESSW));
|
*lpServicesReturned * sizeof(ENUM_SERVICE_STATUS_PROCESSW));
|
||||||
|
|
||||||
for (dwServiceCount = 0; dwServiceCount < *lpServicesReturned; dwServiceCount++)
|
for (dwServiceCount = 0; dwServiceCount < *lpServicesReturned; dwServiceCount++)
|
||||||
|
@ -5286,7 +5286,7 @@ DWORD REnumServicesStatusExW(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dwError == 0)
|
if (dwError == 0)
|
||||||
{
|
{
|
||||||
*pcbBytesNeeded = 0;
|
*pcbBytesNeeded = 0;
|
||||||
if (lpResumeIndex)
|
if (lpResumeIndex)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue