/* Set service tag */
Teb = NtCurrentTeb();
- Teb->SubProcessTag = (PVOID)ThreadParams->dwServiceTag;
+ Teb->SubProcessTag = UlongToPtr(ThreadParams->dwServiceTag);
/* Call the main service routine and free the arguments vector */
(ThreadParams->lpServiceMain)(ThreadParams->dwArgCount,
/* Set service tag */
Teb = NtCurrentTeb();
- Teb->SubProcessTag = (PVOID)ThreadParams->dwServiceTag;
+ Teb->SubProcessTag = UlongToPtr(ThreadParams->dwServiceTag);
/* Call the main service routine and free the arguments vector */
(ThreadParams->lpServiceMain)(ThreadParams->dwArgCount,
TRACE("Service: %S\n", (PWSTR)((ULONG_PTR)ControlPacket + ControlPacket->dwServiceNameOffset));
/* Set service tag */
- NtCurrentTeb()->SubProcessTag = (PVOID)lpService->dwServiceTag;
+ NtCurrentTeb()->SubProcessTag = UlongToPtr(lpService->dwServiceTag);
if (lpService->HandlerFunction)
{