Changeset 21829 for branches/gcc-kmk/src


Ignore:
Timestamp:
Nov 29, 2011, 4:12:32 PM (14 years ago)
Author:
dmik
Message:

Return correct EXITLIST order codes for KERNEL32 and ODINCRT.

This is needed for the correct uninitalization order (which is vital).

Location:
branches/gcc-kmk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/kernel32/initterm.cpp

    r21824 r21829  
    8484
    8585    if (fInit)
    86         return 0; // already initialized
     86        return EXITLIST_KERNEL32; // already initialized
    8787
    8888    rc = DosQuerySysInfo(QSV_VERSION_MAJOR, QSV_VERSION_MINOR,
  • branches/gcc-kmk/src/odincrt/initterm.cpp

    r21785 r21829  
    1212#define  INCL_DOSERRORS
    1313#include <os2wrap.h> // Odin32 OS/2 api wrappers
     14#include <exitlist.h>
    1415#include <initdll.h>
    1516
     
    3839    APIRET rc = DosGetInfoBlocks(&pTIB, &pPIB);
    3940    if (rc != NO_ERROR)
    40         return 0UL;
     41        return -1;
    4142    pPIB->pib_ultype = 3;
    4243#endif
    4344
    4445#ifdef WITH_KLIB
    45         /* cleanup - hacking is done */
    46         DosFreeMem(pvReserved);
     46    /* cleanup - hacking is done */
     47    DosFreeMem(pvReserved);
    4748#endif
     49
     50    return EXITLIST_ODINCRT;
    4851}
    4952
Note: See TracChangeset for help on using the changeset viewer.