diff --git a/reactos/apps/utils/ps/ps.c b/reactos/apps/utils/ps/ps.c index d72a03b2303..48c09088c52 100644 --- a/reactos/apps/utils/ps/ps.c +++ b/reactos/apps/utils/ps/ps.c @@ -273,8 +273,7 @@ int main() (WNDENUMPROC) EnumThreadProc, (LPARAM)(LPTSTR) szWindowName ); } -typedef __attribute__((mode (__pointer__))) unsigned long ULONG_PTRX; -CurrentProcess = (PSYSTEM_PROCESSES)((ULONG_PTRX)CurrentProcess + 1); + CurrentProcess = (PSYSTEM_PROCESSES)((ULONG_PTR)CurrentProcess + (ULONG_PTR)CurrentProcess->NextEntryOffset); }