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
2ff04b9d
Commit
2ff04b9d
authored
Apr 20, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _wfopen_s implementation.
parent
f54fd9ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
3 deletions
+22
-3
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
file.c
dlls/msvcrt/file.c
+19
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcr80/msvcr80.spec
View file @
2ff04b9d
...
...
@@ -1146,7 +1146,7 @@
@ stub _wfindnext64
@ stub _wfindnext64i32
@ cdecl _wfopen(wstr wstr) msvcrt._wfopen
@
stub
_wfopen_s
@
cdecl _wfopen_s(ptr wstr wstr) msvcrt.
_wfopen_s
@ cdecl _wfreopen(wstr wstr ptr) msvcrt._wfreopen
@ stub _wfreopen_s
@ cdecl _wfsopen(wstr wstr long) msvcrt._wfsopen
...
...
dlls/msvcr90/msvcr90.spec
View file @
2ff04b9d
...
...
@@ -1133,7 +1133,7 @@
@ stub _wfindnext64
@ stub _wfindnext64i32
@ cdecl _wfopen(wstr wstr) msvcrt._wfopen
@
stub
_wfopen_s
@
cdecl _wfopen_s(ptr wstr wstr) msvcrt.
_wfopen_s
@ cdecl _wfreopen(wstr wstr ptr) msvcrt._wfreopen
@ stub _wfreopen_s
@ cdecl _wfsopen(wstr wstr long) msvcrt._wfsopen
...
...
dlls/msvcrt/file.c
View file @
2ff04b9d
...
...
@@ -2707,6 +2707,25 @@ MSVCRT_FILE * CDECL MSVCRT__wfopen(const MSVCRT_wchar_t *path, const MSVCRT_wcha
return
MSVCRT__wfsopen
(
path
,
mode
,
MSVCRT__SH_DENYNO
);
}
/*********************************************************************
* _wfopen_s (MSVCRT.@)
*/
int
CDECL
MSVCRT__wfopen_s
(
MSVCRT_FILE
**
pFile
,
const
MSVCRT_wchar_t
*
filename
,
const
MSVCRT_wchar_t
*
mode
)
{
if
(
!
pFile
)
{
MSVCRT__invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
*
pFile
=
MSVCRT__wfopen
(
filename
,
mode
);
if
(
!*
pFile
)
return
*
MSVCRT__errno
();
return
0
;
}
/* MSVCRT_fputc calls MSVCRT__flsbuf which calls MSVCRT_fputc */
int
CDECL
MSVCRT__flsbuf
(
int
c
,
MSVCRT_FILE
*
file
);
...
...
dlls/msvcrt/msvcrt.spec
View file @
2ff04b9d
...
...
@@ -1072,7 +1072,7 @@
# stub _wfindnext64
@ cdecl _wfindnexti64(long ptr) MSVCRT__wfindnexti64
@ cdecl _wfopen(wstr wstr) MSVCRT__wfopen
# stub
_wfopen_s
@ cdecl _wfopen_s(ptr wstr wstr) MSVCRT_
_wfopen_s
@ cdecl _wfreopen(wstr wstr ptr) MSVCRT__wfreopen
# stub _wfreopen_s
@ cdecl _wfsopen(wstr wstr long) MSVCRT__wfsopen
...
...
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