return ERROR_INVALID_HANDLE;
}
- lpService = ScmGetServiceEntryByClientHandle(hServiceStatus);
+ lpService = ScmGetServiceEntryByClientHandle(LongToPtr(hServiceStatus));
if (lpService == NULL)
{
DPRINT1("lpService == NULL!\n");
}
/* Check accepted controls */
- if (lpServiceStatus->dwControlsAccepted == 0 ||
- lpServiceStatus->dwControlsAccepted & ~0xFF)
+ if (lpServiceStatus->dwControlsAccepted & ~0xFF)
{
DPRINT1("Invalid controls accepted!\n");
return ERROR_INVALID_DATA;