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
af0d2067
Commit
af0d2067
authored
Jul 05, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flush stdio on exit.
parent
bef32c65
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
10 deletions
+20
-10
file.c
dlls/msvcrt/file.c
+9
-0
main.c
dlls/msvcrt/main.c
+1
-8
msvcrt.h
dlls/msvcrt/msvcrt.h
+10
-2
No files found.
dlls/msvcrt/file.c
View file @
af0d2067
...
...
@@ -202,6 +202,15 @@ void msvcrt_init_io(void)
}
}
/* free everything on process exit */
void
msvcrt_free_io
(
void
)
{
_fcloseall
();
_close
(
0
);
_close
(
1
);
_close
(
2
);
}
/* INTERNAL: Flush stdio file buffer */
static
int
msvcrt_flush_buffer
(
MSVCRT_FILE
*
file
)
{
...
...
dlls/msvcrt/main.c
View file @
af0d2067
...
...
@@ -33,13 +33,6 @@ static inline BOOL msvcrt_init_tls(void);
static
inline
BOOL
msvcrt_free_tls
(
void
);
const
char
*
msvcrt_get_reason
(
DWORD
reason
)
WINE_UNUSED
;
void
msvcrt_init_io
(
void
);
void
msvcrt_init_console
(
void
);
void
msvcrt_free_console
(
void
);
void
msvcrt_init_args
(
void
);
void
msvcrt_free_args
(
void
);
void
msvcrt_init_vtables
(
void
);
typedef
void
*
(
*
MSVCRT_malloc_func
)(
unsigned
int
);
typedef
void
(
*
MSVCRT_free_func
)(
void
*
);
...
...
@@ -82,7 +75,7 @@ BOOL WINAPI MSVCRT_Init(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
break
;
case
DLL_PROCESS_DETACH
:
msvcrt_free_mt_locks
();
_fcloseall
();
msvcrt_free_io
();
msvcrt_free_console
();
msvcrt_free_args
();
if
(
!
msvcrt_free_tls
())
...
...
dlls/msvcrt/msvcrt.h
View file @
af0d2067
...
...
@@ -59,7 +59,15 @@ LPWSTR msvcrt_wstrndup(LPCWSTR, unsigned int);
int
MSVCRT__set_new_mode
(
int
mode
);
/* Setup and teardown multi threaded locks */
void
msvcrt_init_mt_locks
(
void
);
void
msvcrt_free_mt_locks
(
void
);
extern
void
msvcrt_init_mt_locks
(
void
);
extern
void
msvcrt_free_mt_locks
(
void
);
extern
void
msvcrt_init_io
(
void
);
extern
void
msvcrt_free_io
(
void
);
extern
void
msvcrt_init_console
(
void
);
extern
void
msvcrt_free_console
(
void
);
extern
void
msvcrt_init_args
(
void
);
extern
void
msvcrt_free_args
(
void
);
extern
void
msvcrt_init_vtables
(
void
);
#endif
/* __WINE_MSVCRT_H */
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