Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
2b77ea04
Commit
2b77ea04
authored
Jan 22, 2001
by
Jon Griffiths
Committed by
Alexandre Julliard
Jan 22, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented __dllonexit.
parent
c0ca077f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
4 deletions
+30
-4
exit.c
dlls/msvcrt/exit.c
+30
-4
No files found.
dlls/msvcrt/exit.c
View file @
2b77ea04
...
...
@@ -19,6 +19,7 @@ static int MSVCRT_atexit_table_size = 0;
static
int
MSVCRT_atexit_registered
=
0
;
/* Points to free slot */
extern
int
MSVCRT_app_type
;
void
*
__cdecl
MSVCRT_realloc
(
void
*
ptr
,
unsigned
int
size
);
/* INTERNAL: call atexit functions */
void
__MSVCRT__call_atexit
(
void
)
...
...
@@ -39,11 +40,36 @@ void __MSVCRT__call_atexit(void)
/*********************************************************************
* __dllonexit (MSVCRT.@)
*/
void
__cdecl
MSVCRT___dllonexit
(
MSVCRT_atexit_func
func
,
MSVCRT_atexit_func
**
start
,
MSVCRT_atexit_func
**
end
)
MSVCRT_atexit_func
__cdecl
MSVCRT___dllonexit
(
MSVCRT_atexit_func
func
,
MSVCRT_atexit_func
**
start
,
MSVCRT_atexit_func
**
end
)
{
FIXME
(
"(%p,%p,%p)stub
\n
"
,
func
,
start
,
end
);
/* FIXME: How do we know when to increase the table? */
MSVCRT_atexit_func
*
tmp
;
int
len
;
TRACE
(
"(%p,%p,%p)
\n
"
,
func
,
start
,
end
);
if
(
!
start
||
!*
start
||
!
end
||
!*
end
)
{
FIXME
(
"bad table
\n
"
);
return
NULL
;
}
len
=
(
*
end
-
*
start
);
TRACE
(
"table start %p-%p, %d entries
\n
"
,
*
start
,
*
end
,
len
);
if
(
++
len
<=
0
)
return
NULL
;
tmp
=
(
MSVCRT_atexit_func
*
)
MSVCRT_realloc
(
*
start
,
len
*
sizeof
(
tmp
));
if
(
!
tmp
)
return
NULL
;
*
start
=
tmp
;
*
end
=
tmp
+
len
;
tmp
[
len
-
1
]
=
func
;
TRACE
(
"new table start %p-%p, %d entries
\n
"
,
*
start
,
*
end
,
len
);
return
func
;
}
/*********************************************************************
...
...
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