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
25d7a1bb
Commit
25d7a1bb
authored
Oct 09, 2014
by
Iván Matellanes
Committed by
Alexandre Julliard
Oct 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _fwrite_nolock() implementation.
parent
206ea48f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
7 deletions
+20
-7
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
file.c
dlls/msvcrt/file.c
+14
-3
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-0
stdio.h
include/msvcrt/stdio.h
+1
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
25d7a1bb
...
...
@@ -863,7 +863,7 @@
@ stub _fwprintf_p
@ stub _fwprintf_p_l
@ stub _fwprintf_s_l
@
stub
_fwrite_nolock
@
cdecl _fwrite_nolock(ptr long long ptr) MSVCRT_
_fwrite_nolock
@ varargs _fwscanf_l(ptr wstr ptr) MSVCRT__fwscanf_l
@ varargs _fwscanf_s_l(ptr wstr ptr) MSVCRT__fwscanf_s_l
@ cdecl _gcvt(double long str) MSVCRT__gcvt
...
...
dlls/msvcr110/msvcr110.spec
View file @
25d7a1bb
...
...
@@ -1211,7 +1211,7 @@
@ stub _fwprintf_p
@ stub _fwprintf_p_l
@ stub _fwprintf_s_l
@
stub
_fwrite_nolock
@
cdecl _fwrite_nolock(ptr long long ptr) MSVCRT_
_fwrite_nolock
@ varargs _fwscanf_l(ptr wstr ptr) MSVCRT__fwscanf_l
@ varargs _fwscanf_s_l(ptr wstr ptr) MSVCRT__fwscanf_s_l
@ cdecl _gcvt(double long str) MSVCRT__gcvt
...
...
dlls/msvcr80/msvcr80.spec
View file @
25d7a1bb
...
...
@@ -530,7 +530,7 @@
@ stub _fwprintf_p
@ stub _fwprintf_p_l
@ stub _fwprintf_s_l
@
stub
_fwrite_nolock
@
cdecl _fwrite_nolock(ptr long long ptr) MSVCRT_
_fwrite_nolock
@ varargs _fwscanf_l(ptr wstr ptr) MSVCRT__fwscanf_l
@ varargs _fwscanf_s_l(ptr wstr ptr) MSVCRT__fwscanf_s_l
@ cdecl _gcvt(double long str) MSVCRT__gcvt
...
...
dlls/msvcr90/msvcr90.spec
View file @
25d7a1bb
...
...
@@ -512,7 +512,7 @@
@ stub _fwprintf_p
@ stub _fwprintf_p_l
@ stub _fwprintf_s_l
@
stub
_fwrite_nolock
@
cdecl _fwrite_nolock(ptr long long ptr) MSVCRT_
_fwrite_nolock
@ varargs _fwscanf_l(ptr wstr ptr) MSVCRT__fwscanf_l
@ varargs _fwscanf_s_l(ptr wstr ptr) MSVCRT__fwscanf_s_l
@ cdecl _gcvt(double long str) MSVCRT__gcvt
...
...
dlls/msvcrt/file.c
View file @
25d7a1bb
...
...
@@ -3707,13 +3707,25 @@ int CDECL MSVCRT__flsbuf(int c, MSVCRT_FILE* file)
*/
MSVCRT_size_t
CDECL
MSVCRT_fwrite
(
const
void
*
ptr
,
MSVCRT_size_t
size
,
MSVCRT_size_t
nmemb
,
MSVCRT_FILE
*
file
)
{
int
ret
;
MSVCRT__lock_file
(
file
);
ret
=
MSVCRT__fwrite_nolock
(
ptr
,
size
,
nmemb
,
file
);
MSVCRT__unlock_file
(
file
);
return
ret
;
}
/*********************************************************************
* _fwrite_nolock (MSVCRT.@)
*/
MSVCRT_size_t
CDECL
MSVCRT__fwrite_nolock
(
const
void
*
ptr
,
MSVCRT_size_t
size
,
MSVCRT_size_t
nmemb
,
MSVCRT_FILE
*
file
)
{
MSVCRT_size_t
wrcnt
=
size
*
nmemb
;
int
written
=
0
;
if
(
size
==
0
)
return
0
;
MSVCRT__lock_file
(
file
);
while
(
wrcnt
)
{
if
(
file
->
_cnt
<
0
)
{
WARN
(
"negative file->_cnt value in %p
\n
"
,
file
);
...
...
@@ -3761,7 +3773,6 @@ MSVCRT_size_t CDECL MSVCRT_fwrite(const void *ptr, MSVCRT_size_t size, MSVCRT_si
}
}
MSVCRT__unlock_file
(
file
);
return
written
/
size
;
}
...
...
dlls/msvcrt/msvcrt.h
View file @
25d7a1bb
...
...
@@ -926,6 +926,7 @@ MSVCRT_ulong* __cdecl MSVCRT___doserrno(void);
int
*
__cdecl
MSVCRT__errno
(
void
);
char
*
__cdecl
MSVCRT_getenv
(
const
char
*
);
MSVCRT_size_t
__cdecl
MSVCRT__fread_nolock
(
void
*
,
MSVCRT_size_t
,
MSVCRT_size_t
,
MSVCRT_FILE
*
);
MSVCRT_size_t
__cdecl
MSVCRT__fwrite_nolock
(
const
void
*
,
MSVCRT_size_t
,
MSVCRT_size_t
,
MSVCRT_FILE
*
);
int
__cdecl
MSVCRT_fclose
(
MSVCRT_FILE
*
);
int
__cdecl
MSVCRT__fclose_nolock
(
MSVCRT_FILE
*
);
void
__cdecl
MSVCRT_terminate
(
void
);
...
...
include/msvcrt/stdio.h
View file @
25d7a1bb
...
...
@@ -128,6 +128,7 @@ int __cdecl _vsnprintf_s(char*,size_t,size_t,const char*,__ms_va_list);
int
__cdecl
_vsprintf_p_l
(
char
*
,
size_t
,
const
char
*
,
_locale_t
,
__ms_va_list
);
size_t
__cdecl
_fread_nolock
(
void
*
,
size_t
,
size_t
,
FILE
*
);
size_t
__cdecl
_fwrite_nolock
(
const
void
*
,
size_t
,
size_t
,
FILE
*
);
int
__cdecl
_fclose_nolock
(
FILE
*
);
void
__cdecl
clearerr
(
FILE
*
);
...
...
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