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
6735dcc3
Commit
6735dcc3
authored
Mar 17, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use public onexit table declarations in importlib.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aa16d0ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
onexit.c
dlls/msvcrt/onexit.c
+8
-7
No files found.
dlls/msvcrt/onexit.c
View file @
6735dcc3
...
...
@@ -24,6 +24,7 @@
#endif
#define _CRTIMP
#include <process.h>
#include "msvcrt.h"
#include "mtdll.h"
...
...
@@ -31,7 +32,7 @@
/*********************************************************************
* _initialize_onexit_table (UCRTBASE.@)
*/
int
CDECL
_initialize_onexit_table
(
MSVCRT_
_onexit_table_t
*
table
)
int
__cdecl
_initialize_onexit_table
(
_onexit_table_t
*
table
)
{
if
(
!
table
)
return
-
1
;
...
...
@@ -45,7 +46,7 @@ int CDECL _initialize_onexit_table(MSVCRT__onexit_table_t *table)
/*********************************************************************
* _register_onexit_function (UCRTBASE.@)
*/
int
CDECL
_register_onexit_function
(
MSVCRT__onexit_table_t
*
table
,
MSVCRT_
_onexit_t
func
)
int
__cdecl
_register_onexit_function
(
_onexit_table_t
*
table
,
_onexit_t
func
)
{
if
(
!
table
)
return
-
1
;
...
...
@@ -67,7 +68,7 @@ int CDECL _register_onexit_function(MSVCRT__onexit_table_t *table, MSVCRT__onexi
if
(
table
->
_last
==
table
->
_end
)
{
int
len
=
table
->
_end
-
table
->
_first
;
MSVCRT__onexit_t
*
tmp
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
table
->
_first
,
2
*
len
*
sizeof
(
void
*
));
_PVFV
*
tmp
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
table
->
_first
,
2
*
len
*
sizeof
(
void
*
));
if
(
!
tmp
)
{
_munlock
(
_EXIT_LOCK1
);
...
...
@@ -78,7 +79,7 @@ int CDECL _register_onexit_function(MSVCRT__onexit_table_t *table, MSVCRT__onexi
table
->
_last
=
table
->
_first
+
len
;
}
*
table
->
_last
=
func
;
*
table
->
_last
=
(
_PVFV
)
func
;
table
->
_last
++
;
_munlock
(
_EXIT_LOCK1
);
return
0
;
...
...
@@ -88,10 +89,10 @@ int CDECL _register_onexit_function(MSVCRT__onexit_table_t *table, MSVCRT__onexi
/*********************************************************************
* _execute_onexit_table (UCRTBASE.@)
*/
int
CDECL
_execute_onexit_table
(
MSVCRT_
_onexit_table_t
*
table
)
int
__cdecl
_execute_onexit_table
(
_onexit_table_t
*
table
)
{
MSVCRT__onexit_t
*
func
;
MSVCRT_
_onexit_table_t
copy
;
_PVFV
*
func
;
_onexit_table_t
copy
;
if
(
!
table
)
return
-
1
;
...
...
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