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/main.c

    r9633 r10005  
    2222#include "msvcrt/locale.h"
    2323#include "msvcrt/stdio.h"
    24 
     24#include <string.h>
    2525#include "wine/debug.h"
    2626
     
    4747
    4848
    49 unsigned long _DLL_InitTerm (unsigned long mod_handle,
    50                                 unsigned long flag)
    51 {
    52   switch (flag)
    53     {
    54        case 0:
    55          if (_CRT_init () != 0)
    56            return 0;
    57          __ctordtorInit ();
    58 
    59          dllHandle = RegisterLxDll(mod_handle, MSVCRT_Init, 0,0,0,0);
    60 
    61         return 1;
    62        case 1:
    63          __ctordtorTerm ();
    64          _CRT_term ();
    65 
    66          if(dllHandle) {
    67              UnregisterLxDll(dllHandle);
    68          }
    69 
    70          return 1;
    71        default:
    72          return 0;
    73        }
    74      return 1;
    75    }
    76 
    7749/*********************************************************************
    7850 *                  Init
     
    9062  {
    9163  case DLL_PROCESS_ATTACH:
    92     if (!msvcrt_init_tls())
     64   if (!msvcrt_init_tls())
    9365      return FALSE;
    9466    msvcrt_init_mt_locks();
Note: See TracChangeset for help on using the changeset viewer.