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
c5894bac
Commit
c5894bac
authored
May 19, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
May 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Make printf functions thread safe.
parent
249917be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
file.c
dlls/msvcrt/file.c
+28
-4
No files found.
dlls/msvcrt/file.c
View file @
c5894bac
...
...
@@ -3563,7 +3563,13 @@ static int puts_clbk_file_w(void *file, int len, const MSVCRT_wchar_t *str)
*/
int
CDECL
MSVCRT_vfprintf
(
MSVCRT_FILE
*
file
,
const
char
*
format
,
__ms_va_list
valist
)
{
return
pf_printf_a
(
puts_clbk_file_a
,
file
,
format
,
NULL
,
FALSE
,
FALSE
,
arg_clbk_valist
,
NULL
,
&
valist
);
int
ret
;
MSVCRT__lock_file
(
file
);
ret
=
pf_printf_a
(
puts_clbk_file_a
,
file
,
format
,
NULL
,
FALSE
,
FALSE
,
arg_clbk_valist
,
NULL
,
&
valist
);
MSVCRT__unlock_file
(
file
);
return
ret
;
}
/*********************************************************************
...
...
@@ -3571,12 +3577,18 @@ int CDECL MSVCRT_vfprintf(MSVCRT_FILE* file, const char *format, __ms_va_list va
*/
int
CDECL
MSVCRT_vfprintf_s
(
MSVCRT_FILE
*
file
,
const
char
*
format
,
__ms_va_list
valist
)
{
int
ret
;
if
(
!
MSVCRT_CHECK_PMT
(
file
!=
NULL
))
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
-
1
;
}
return
pf_printf_a
(
puts_clbk_file_a
,
file
,
format
,
NULL
,
FALSE
,
TRUE
,
arg_clbk_valist
,
NULL
,
&
valist
);
MSVCRT__lock_file
(
file
);
ret
=
pf_printf_a
(
puts_clbk_file_a
,
file
,
format
,
NULL
,
FALSE
,
TRUE
,
arg_clbk_valist
,
NULL
,
&
valist
);
MSVCRT__unlock_file
(
file
);
return
ret
;
}
/*********************************************************************
...
...
@@ -3584,7 +3596,13 @@ int CDECL MSVCRT_vfprintf_s(MSVCRT_FILE* file, const char *format, __ms_va_list
*/
int
CDECL
MSVCRT_vfwprintf
(
MSVCRT_FILE
*
file
,
const
MSVCRT_wchar_t
*
format
,
__ms_va_list
valist
)
{
return
pf_printf_w
(
puts_clbk_file_w
,
file
,
format
,
NULL
,
FALSE
,
FALSE
,
arg_clbk_valist
,
NULL
,
&
valist
);
int
ret
;
MSVCRT__lock_file
(
file
);
ret
=
pf_printf_w
(
puts_clbk_file_w
,
file
,
format
,
NULL
,
FALSE
,
FALSE
,
arg_clbk_valist
,
NULL
,
&
valist
);
MSVCRT__unlock_file
(
file
);
return
ret
;
}
/*********************************************************************
...
...
@@ -3592,12 +3610,18 @@ int CDECL MSVCRT_vfwprintf(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, __ms
*/
int
CDECL
MSVCRT_vfwprintf_s
(
MSVCRT_FILE
*
file
,
const
MSVCRT_wchar_t
*
format
,
__ms_va_list
valist
)
{
int
ret
;
if
(
!
MSVCRT_CHECK_PMT
(
file
!=
NULL
))
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
-
1
;
}
return
pf_printf_w
(
puts_clbk_file_w
,
file
,
format
,
NULL
,
FALSE
,
TRUE
,
arg_clbk_valist
,
NULL
,
&
valist
);
MSVCRT__lock_file
(
file
);
ret
=
pf_printf_w
(
puts_clbk_file_w
,
file
,
format
,
NULL
,
FALSE
,
TRUE
,
arg_clbk_valist
,
NULL
,
&
valist
);
MSVCRT__unlock_file
(
file
);
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