diff options
Diffstat (limited to 'amiga/launch.c')
-rwxr-xr-x | amiga/launch.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/amiga/launch.c b/amiga/launch.c index 73e526e..93b474a 100755 --- a/amiga/launch.c +++ b/amiga/launch.c @@ -1,5 +1,5 @@ /* -** Copyright (c) 2001-2007 Expat maintainers. +** Copyright (c) 2001-2009 Expat maintainers. ** ** Permission is hereby granted, free of charge, to any person obtaining ** a copy of this software and associated documentation files (the @@ -8,10 +8,10 @@ ** distribute, sublicense, and/or sell copies of the Software, and to ** permit persons to whom the Software is furnished to do so, subject to ** the following conditions: -** +** ** The above copyright notice and this permission notice shall be included ** in all copies or substantial portions of the Software. -** +** ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -34,8 +34,9 @@ void cleanup() __attribute__((destructor)); void setup() { - ExpatBase = OpenLibrary("expat.library", 4); + ExpatBase = OpenLibrary("expat.library", 5); IExpat = (struct ExpatIFace*)GetInterface(ExpatBase, "main", 1, NULL); + if ( IExpat == 0 ) { DebugPrintF("Can't open expat.library\n"); } @@ -44,13 +45,9 @@ void setup() void cleanup() { - if ( IExpat != 0 ) { - DropInterface((struct Interface*)IExpat); - IExpat = 0; - } + DropInterface((struct Interface*)IExpat); + IExpat = 0; - if ( ExpatBase != 0 ) { - CloseLibrary(ExpatBase); - ExpatBase = 0; - } + CloseLibrary(ExpatBase); + ExpatBase = 0; } |