[SERVICES]

Fix an MSVC warning

svn path=/trunk/; revision=52719
This commit is contained in:
Timo Kreuzer 2011-07-17 17:51:52 +00:00
parent b38aed5d19
commit 71842f91e6

View file

@ -586,7 +586,7 @@ DWORD RControlService(
lpService = hSvc->ServiceEntry;
if (lpService == NULL)
{
DPRINT1("lpService == NULL!\n");
DPRINT1("lpService == NULL!\n");
return ERROR_INVALID_HANDLE;
}
@ -973,7 +973,7 @@ DWORD RSetServiceObjectSecurity(
TRUE,
&hToken);
if (!NT_SUCCESS(Status))
return RtlNtStatusToDosError(Status);
return RtlNtStatusToDosError(Status);
RpcRevertToSelf();
@ -1602,7 +1602,7 @@ ScmConvertToBootPathName(wchar_t *CanonName, wchar_t **RelativeName)
}
/* Do a real query now */
LinkTarget.Length = BufferSize;
LinkTarget.Length = (USHORT)BufferSize;
LinkTarget.MaximumLength = LinkTarget.Length + sizeof(WCHAR);
Status = NtQuerySymbolicLinkObject(SymbolicLinkHandle, &LinkTarget, &BufferSize);
@ -2491,7 +2491,7 @@ DWORD REnumServicesStatusW(
dwRequiredSize += dwSize;
}
if (dwError == 0)
if (dwError == 0)
{
*pcbBytesNeeded = 0;
if (lpResumeHandle) *lpResumeHandle = 0;
@ -3705,7 +3705,7 @@ DWORD REnumServicesStatusA(
lpStatusPtrA = (LPENUM_SERVICE_STATUSA)lpBuffer;
lpStringPtrA = (LPSTR)((ULONG_PTR)lpBuffer +
*lpServicesReturned * sizeof(ENUM_SERVICE_STATUSA));
lpStringPtrW = (LPWSTR)((ULONG_PTR)lpStatusPtrW +
lpStringPtrW = (LPWSTR)((ULONG_PTR)lpStatusPtrW +
*lpServicesReturned * sizeof(ENUM_SERVICE_STATUSW));
for (dwServiceCount = 0; dwServiceCount < *lpServicesReturned; dwServiceCount++)
@ -4786,7 +4786,7 @@ DWORD RQueryServiceConfig2W(
goto done;
}
lpFailureActions->cActions = 0;
lpFailureActions->cActions = 0;
lpFailureActions->dwResetPeriod = 0;
lpFailureActions->lpCommand = NULL;
lpFailureActions->lpRebootMsg = NULL;
@ -4966,7 +4966,7 @@ DWORD REnumServicesStatusExA(
lpStatusPtrA = (LPENUM_SERVICE_STATUS_PROCESSA)lpBuffer;
lpStringPtrA = (LPSTR)((ULONG_PTR)lpBuffer +
*lpServicesReturned * sizeof(ENUM_SERVICE_STATUS_PROCESSA));
lpStringPtrW = (LPWSTR)((ULONG_PTR)lpStatusPtrW +
lpStringPtrW = (LPWSTR)((ULONG_PTR)lpStatusPtrW +
*lpServicesReturned * sizeof(ENUM_SERVICE_STATUS_PROCESSW));
for (dwServiceCount = 0; dwServiceCount < *lpServicesReturned; dwServiceCount++)
@ -5286,7 +5286,7 @@ DWORD REnumServicesStatusExW(
}
}
if (dwError == 0)
if (dwError == 0)
{
*pcbBytesNeeded = 0;
if (lpResumeIndex)