Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/lib/cygwin_attach_dll.c')
-rw-r--r--winsup/cygwin/lib/cygwin_attach_dll.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/winsup/cygwin/lib/cygwin_attach_dll.c b/winsup/cygwin/lib/cygwin_attach_dll.c
index 09b898bdf..440cace57 100644
--- a/winsup/cygwin/lib/cygwin_attach_dll.c
+++ b/winsup/cygwin/lib/cygwin_attach_dll.c
@@ -17,15 +17,9 @@ details. */
int
cygwin_attach_dll (HMODULE h, MainFunc f)
{
- struct per_process *u;
- if (_cygwin_crt0_common (f, NULL))
- u = NULL; /* Newer DLL. Use DLL internal per_process. */
- else /* Older DLL. Provide a per_process */
- {
- u = (struct per_process *) alloca (sizeof (*u));
- (void) _cygwin_crt0_common (f, u);
- }
+ struct per_process u;
+ (void) _cygwin_crt0_common (f, &u);
/* jump into the dll. */
- return dll_dllcrt0 (h, u);
+ return dll_dllcrt0 (h, &u);
}