cruft/installer/UnitSelectModPath.pas
author Scott Ehlert <ds@alliedmods.net>
Tue Nov 24 07:33:52 2009 -0600 (2009-11-24)
changeset 685 522727461c0d
parent 540 ddf299e278d2
permissions -rw-r--r--
Fixed crashes in code generated by SourceHook's HookManGen on Mac OS X (bug 3514, r=dvander).

This fixes two problems:
1) On OS X structures/objects with sizes of 1, 2, 4, or 8 are returned from functions in registers, not memory addresses.
2) A function returning anything which was 8 bytes in size was crashing. This problem affected all compilers/operating systems.
     1 unit UnitSelectModPath;
     2 
     3 interface
     4 
     5 uses
     6   SysUtils, Windows, Messages, Classes, Graphics, Controls,
     7   StdCtrls, ExtCtrls, Forms, FileCtrl, ComCtrls, ShellCtrls,
     8   TFlatComboBoxUnit, TFlatButtonUnit;
     9 
    10 type
    11   TfrmSelectModPath = class(TForm)
    12     pnlDesign: TPanel;
    13     lblInfo: TLabel;
    14     trvDirectory: TShellTreeView;
    15     cmdOK: TFlatButton;
    16     cmdCancel: TFlatButton;
    17   end;
    18 
    19 var
    20   frmSelectModPath: TfrmSelectModPath;
    21 
    22 implementation
    23 
    24 {$R *.DFM}
    25 
    26 end.