Ignore:
Timestamp:
Apr 10, 2003, 12:28:07 PM (22 years ago)
Author:
sandervl
Message:

PF: MSVCRT update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/msvcrt/mainmsvcrt40.c

    r9633 r10005  
    1818 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1919 */
     20
     21#include <windows.h>
     22#include <win32type.h>
     23#include <stdlib.h>
     24#include <stdio.h>
     25#include <string.h>
     26#include <odin.h>
     27#include <odinlx.h>
     28#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     29#include <initdll.h>
     30#include <exitlist.h>
     31#include <os2sel.h>
     32
    2033#include "msvcrt.h"
    2134#define TLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF)
     
    3750typedef void (*MSVCRT_free_func)(void*);
    3851
    39 int _CRT_init (void);
    40 void _CRT_term (void);
    41 void __ctordtorInit (void);
    42 void __ctordtorTerm (void);
    43 
    4452static HMODULE dllHandle = 0;
    4553
     
    5361    {
    5462       case 0:
    55          if (_CRT_init () != 0)
    56            return 0;
    57          __ctordtorInit ();
    58 
    5963         dllHandle = RegisterLxDll(mod_handle, MSVCRT40_Init, 0,0,0,0);
    60 
    61         return 1;
     64         return 1;
    6265       case 1:
    63          __ctordtorTerm ();
    64          _CRT_term ();
    6566
    6667         if(dllHandle) {
     
    8081BOOL WINAPI MSVCRT40_Init(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
    8182{
    82  return MSVCRT_Init(hinstDLL, fdwReason, lpvReserved);
     83 return TRUE;
    8384}
    8485 
Note: See TracChangeset for help on using the changeset viewer.