Fix: incorrect records alignment for 64-bit in jwatlhelp32.pas

Records in some JEDI units appear to be misaligned when compiling for 64-bit, which leads to issues. One such case is in jwatlhelp32.pas.

Here's an example that works on 32-bit, but fails on 64-bit due to incorrect alignment of PROCESSENTRY32:

program app;

uses JwaWindows;

var
  h: hwnd;
  e: PROCESSENTRY32;

begin
  h := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);

  e.dwSize := sizeof(e);

  if Process32First(h, e) then
    repeat
      writeln(e.szExeFile);
    until not Process32Next(h, e);

  readln;
end.

Merge request reports

Loading