Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
8a5f8937
Commit
8a5f8937
authored
Sep 03, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure to always call the destructors when the constructors have
been called from the dll entry point.
parent
50cce6b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
dll_entry.c
dlls/winecrt0/dll_entry.c
+8
-3
No files found.
dlls/winecrt0/dll_entry.c
View file @
8a5f8937
...
...
@@ -28,13 +28,18 @@ extern BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved );
BOOL
WINAPI
__wine_spec_dll_entry
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserved
)
{
BOOL
ret
,
needs_init
=
(
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
);
static
BOOL
call_fini
;
BOOL
ret
;
if
(
reason
==
DLL_PROCESS_ATTACH
&&
needs_init
)
if
(
reason
==
DLL_PROCESS_ATTACH
&&
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
)
{
call_fini
=
TRUE
;
_init
(
__wine_main_argc
,
__wine_main_argv
,
__wine_main_environ
);
}
ret
=
DllMain
(
inst
,
reason
,
reserved
);
if
(
reason
==
DLL_PROCESS_DETACH
&&
needs_init
)
_fini
();
if
(
reason
==
DLL_PROCESS_DETACH
&&
call_fini
)
_fini
();
return
ret
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment