mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 04:45:45 +00:00
[MSVCR*]
- Don't bother to clean up at process exit (Wine commit 66a54686 by Alexandre Julliard) svn path=/trunk/; revision=67250
This commit is contained in:
parent
fd843b6fd0
commit
cbe2b11ed5
4 changed files with 12 additions and 8 deletions
|
@ -160,6 +160,7 @@ DllMain(PVOID hinstDll, ULONG dwReason, PVOID reserved)
|
||||||
TRACE("Detach\n");
|
TRACE("Detach\n");
|
||||||
/* Deinit of the WINE code */
|
/* Deinit of the WINE code */
|
||||||
msvcrt_free_io();
|
msvcrt_free_io();
|
||||||
|
if (reserved) break;
|
||||||
msvcrt_free_mt_locks();
|
msvcrt_free_mt_locks();
|
||||||
//msvcrt_free_console();
|
//msvcrt_free_console();
|
||||||
//msvcrt_free_args();
|
//msvcrt_free_args();
|
||||||
|
@ -169,12 +170,12 @@ DllMain(PVOID hinstDll, ULONG dwReason, PVOID reserved)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
//MSVCRT__free_locale(MSVCRT_locale);
|
//MSVCRT__free_locale(MSVCRT_locale);
|
||||||
|
|
||||||
if (__winitenv && __winitenv != _wenviron)
|
if (__winitenv && __winitenv != _wenviron)
|
||||||
FreeEnvironment((char**)__winitenv);
|
FreeEnvironment((char**)__winitenv);
|
||||||
if (_wenviron)
|
if (_wenviron)
|
||||||
FreeEnvironment((char**)_wenviron);
|
FreeEnvironment((char**)_wenviron);
|
||||||
|
|
||||||
if (__initenv && __initenv != _environ)
|
if (__initenv && __initenv != _environ)
|
||||||
FreeEnvironment(__initenv);
|
FreeEnvironment(__initenv);
|
||||||
if (_environ)
|
if (_environ)
|
||||||
FreeEnvironment(_environ);
|
FreeEnvironment(_environ);
|
||||||
|
|
|
@ -97,6 +97,7 @@ DllMain(PVOID hinstDll, ULONG dwReason, PVOID reserved)
|
||||||
TRACE("Detach\n");
|
TRACE("Detach\n");
|
||||||
/* Deinit of the WINE code */
|
/* Deinit of the WINE code */
|
||||||
msvcrt_free_io();
|
msvcrt_free_io();
|
||||||
|
if (reserved) break;
|
||||||
msvcrt_free_mt_locks();
|
msvcrt_free_mt_locks();
|
||||||
//msvcrt_free_console();
|
//msvcrt_free_console();
|
||||||
//msvcrt_free_args();
|
//msvcrt_free_args();
|
||||||
|
@ -107,12 +108,12 @@ DllMain(PVOID hinstDll, ULONG dwReason, PVOID reserved)
|
||||||
if(global_locale)
|
if(global_locale)
|
||||||
MSVCRT__free_locale(global_locale);
|
MSVCRT__free_locale(global_locale);
|
||||||
|
|
||||||
if (__winitenv && __winitenv != _wenviron)
|
if (__winitenv && __winitenv != _wenviron)
|
||||||
FreeEnvironment((char**)__winitenv);
|
FreeEnvironment((char**)__winitenv);
|
||||||
if (_wenviron)
|
if (_wenviron)
|
||||||
FreeEnvironment((char**)_wenviron);
|
FreeEnvironment((char**)_wenviron);
|
||||||
|
|
||||||
if (__initenv && __initenv != _environ)
|
if (__initenv && __initenv != _environ)
|
||||||
FreeEnvironment(__initenv);
|
FreeEnvironment(__initenv);
|
||||||
if (_environ)
|
if (_environ)
|
||||||
FreeEnvironment(_environ);
|
FreeEnvironment(_environ);
|
||||||
|
|
|
@ -116,6 +116,7 @@ DllMain(PVOID hinstDll, ULONG dwReason, PVOID reserved)
|
||||||
TRACE("Detach\n");
|
TRACE("Detach\n");
|
||||||
/* Deinit of the WINE code */
|
/* Deinit of the WINE code */
|
||||||
msvcrt_free_io();
|
msvcrt_free_io();
|
||||||
|
if (reserved) break;
|
||||||
msvcrt_free_mt_locks();
|
msvcrt_free_mt_locks();
|
||||||
//msvcrt_free_console();
|
//msvcrt_free_console();
|
||||||
//msvcrt_free_args();
|
//msvcrt_free_args();
|
||||||
|
@ -126,12 +127,12 @@ DllMain(PVOID hinstDll, ULONG dwReason, PVOID reserved)
|
||||||
if(global_locale)
|
if(global_locale)
|
||||||
MSVCRT__free_locale(global_locale);
|
MSVCRT__free_locale(global_locale);
|
||||||
|
|
||||||
if (__winitenv && __winitenv != _wenviron)
|
if (__winitenv && __winitenv != _wenviron)
|
||||||
FreeEnvironment((char**)__winitenv);
|
FreeEnvironment((char**)__winitenv);
|
||||||
if (_wenviron)
|
if (_wenviron)
|
||||||
FreeEnvironment((char**)_wenviron);
|
FreeEnvironment((char**)_wenviron);
|
||||||
|
|
||||||
if (__initenv && __initenv != _environ)
|
if (__initenv && __initenv != _environ)
|
||||||
FreeEnvironment(__initenv);
|
FreeEnvironment(__initenv);
|
||||||
if (_environ)
|
if (_environ)
|
||||||
FreeEnvironment(_environ);
|
FreeEnvironment(_environ);
|
||||||
|
|
|
@ -112,6 +112,7 @@ DllMain(PVOID hinstDll, ULONG dwReason, PVOID reserved)
|
||||||
TRACE("Detach\n");
|
TRACE("Detach\n");
|
||||||
/* Deinit of the WINE code */
|
/* Deinit of the WINE code */
|
||||||
msvcrt_free_io();
|
msvcrt_free_io();
|
||||||
|
if (reserved) break;
|
||||||
msvcrt_free_mt_locks();
|
msvcrt_free_mt_locks();
|
||||||
//msvcrt_free_console();
|
//msvcrt_free_console();
|
||||||
//msvcrt_free_args();
|
//msvcrt_free_args();
|
||||||
|
@ -122,12 +123,12 @@ DllMain(PVOID hinstDll, ULONG dwReason, PVOID reserved)
|
||||||
if(global_locale)
|
if(global_locale)
|
||||||
MSVCRT__free_locale(global_locale);
|
MSVCRT__free_locale(global_locale);
|
||||||
|
|
||||||
if (__winitenv && __winitenv != _wenviron)
|
if (__winitenv && __winitenv != _wenviron)
|
||||||
FreeEnvironment((char**)__winitenv);
|
FreeEnvironment((char**)__winitenv);
|
||||||
if (_wenviron)
|
if (_wenviron)
|
||||||
FreeEnvironment((char**)_wenviron);
|
FreeEnvironment((char**)_wenviron);
|
||||||
|
|
||||||
if (__initenv && __initenv != _environ)
|
if (__initenv && __initenv != _environ)
|
||||||
FreeEnvironment(__initenv);
|
FreeEnvironment(__initenv);
|
||||||
if (_environ)
|
if (_environ)
|
||||||
FreeEnvironment(_environ);
|
FreeEnvironment(_environ);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue