X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fapps%2Futils%2Fps%2Fps.c;h=48c09088c5215eaf102adbfe3ca911100a394f2c;hp=d72a03b2303716a20ba13b5df04c0fa1e4337f25;hb=f7140e3afe47cf8824f3535dc7cb413b5dc115d2;hpb=012bdf846d776873bdb81ad80ce821f3e9f0defb 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); }