if (lpdwTagId != NULL)
{
- dwError = ScmAssignNewTag(lpService->lpServiceGroup,
+ dwError = ScmAssignNewTag(lpService->lpGroup->lpGroupName,
&lpService->dwTag);
if (dwError != ERROR_SUCCESS)
goto done;
if (lpdwTagId != NULL)
{
- dwError = ScmAssignNewTag(lpService->lpServiceGroup,
+ dwError = ScmAssignNewTag(lpService->lpGroup->lpGroupName,
&lpService->dwTag);
if (dwError != ERROR_SUCCESS)
goto done;
if (lpImagePath != NULL)
dwRequiredSize += ((wcslen(lpImagePath) + 1) * sizeof(WCHAR));
- if (lpService->lpServiceGroup != NULL)
- dwRequiredSize += ((wcslen(lpService->lpServiceGroup) + 1) * sizeof(WCHAR));
+ if (lpService->lpGroup != NULL)
+ dwRequiredSize += ((wcslen(lpService->lpGroup->lpGroupName) + 1) * sizeof(WCHAR));
/* FIXME: Add Dependencies length*/
lpConfig->lpBinaryPathName = NULL;
}
- if (lpService->lpServiceGroup != NULL)
+ if (lpService->lpGroup != NULL)
{
- wcscpy(lpStr, lpService->lpServiceGroup);
+ wcscpy(lpStr, lpService->lpGroup->lpGroupName);
lpConfig->lpLoadOrderGroup = (LPWSTR)((ULONG_PTR)lpStr - (ULONG_PTR)lpConfig);
- lpStr += (wcslen(lpService->lpServiceGroup) + 1);
+ lpStr += (wcslen(lpService->lpGroup->lpGroupName) + 1);
}
else
{
if (pszGroupName)
{
- if (_wcsicmp(pszGroupName, CurrentService->lpServiceGroup))
+ if ((CurrentService->lpGroup == NULL) ||
+ _wcsicmp(pszGroupName, CurrentService->lpGroup->lpGroupName))
continue;
}
if (pszGroupName)
{
- if (_wcsicmp(pszGroupName, CurrentService->lpServiceGroup))
+ if ((CurrentService->lpGroup == NULL) ||
+ _wcsicmp(pszGroupName, CurrentService->lpGroup->lpGroupName))
continue;
}
if (pszGroupName)
{
- if (_wcsicmp(pszGroupName, CurrentService->lpServiceGroup))
+ if ((CurrentService->lpGroup == NULL) ||
+ _wcsicmp(pszGroupName, CurrentService->lpGroup->lpGroupName))
continue;
}