Commit of the code which was suggested by Georg as a fix for:
[cake.git] / rom / dos / unloadseg.c
blob9c952989228ae9cb9721e8ad928980e9956f3cc9
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
9 #include <proto/exec.h>
10 #include <dos/dos.h>
11 #include <exec/types.h>
12 #include "dos_intern.h"
14 /*****************************************************************************
16 NAME */
17 #include <proto/dos.h>
19 AROS_LH1(BOOL, UnLoadSeg,
21 /* SYNOPSIS */
22 AROS_LHA(BPTR, seglist, D1),
24 /* LOCATION */
25 struct DosLibrary *, DOSBase, 26, Dos)
27 /* FUNCTION
28 Free a segment list allocated with LoadSeg().
30 INPUTS
31 seglist - The segment list.
33 RESULT
34 success = returns whether everything went ok. Returns FALSE if
35 seglist was NULL.
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 LoadSeg()
45 INTERNALS
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 if (seglist)
53 return InternalUnLoadSeg(seglist, __AROS_GETVECADDR(SysBase, 35));
56 return FALSE;
58 AROS_LIBFUNC_EXIT
59 } /* UnLoadSeg */