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
947d1bf5
Commit
947d1bf5
authored
Nov 13, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implement _wfreopen_s.
parent
ba5b0c34
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
4 deletions
+23
-4
msvcr100.spec
dlls/msvcr100/msvcr100.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
+19
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcr100/msvcr100.spec
View file @
947d1bf5
...
@@ -1350,7 +1350,7 @@
...
@@ -1350,7 +1350,7 @@
@ cdecl _wfopen(wstr wstr) msvcrt._wfopen
@ cdecl _wfopen(wstr wstr) msvcrt._wfopen
@ cdecl _wfopen_s(ptr wstr wstr) msvcrt._wfopen_s
@ cdecl _wfopen_s(ptr wstr wstr) msvcrt._wfopen_s
@ cdecl _wfreopen(wstr wstr ptr) msvcrt._wfreopen
@ cdecl _wfreopen(wstr wstr ptr) msvcrt._wfreopen
@
stub
_wfreopen_s
@
cdecl _wfreopen_s(ptr wstr wstr ptr) msvcrt.
_wfreopen_s
@ cdecl _wfsopen(wstr wstr long) msvcrt._wfsopen
@ cdecl _wfsopen(wstr wstr long) msvcrt._wfsopen
@ cdecl _wfullpath(ptr wstr long) msvcrt._wfullpath
@ cdecl _wfullpath(ptr wstr long) msvcrt._wfullpath
@ cdecl _wgetcwd(wstr long) msvcrt._wgetcwd
@ cdecl _wgetcwd(wstr long) msvcrt._wgetcwd
...
...
dlls/msvcr80/msvcr80.spec
View file @
947d1bf5
...
@@ -1203,7 +1203,7 @@
...
@@ -1203,7 +1203,7 @@
@ cdecl _wfopen(wstr wstr) msvcrt._wfopen
@ cdecl _wfopen(wstr wstr) msvcrt._wfopen
@ cdecl _wfopen_s(ptr wstr wstr) msvcrt._wfopen_s
@ cdecl _wfopen_s(ptr wstr wstr) msvcrt._wfopen_s
@ cdecl _wfreopen(wstr wstr ptr) msvcrt._wfreopen
@ cdecl _wfreopen(wstr wstr ptr) msvcrt._wfreopen
@
stub
_wfreopen_s
@
cdecl _wfreopen_s(ptr wstr wstr ptr) msvcrt.
_wfreopen_s
@ cdecl _wfsopen(wstr wstr long) msvcrt._wfsopen
@ cdecl _wfsopen(wstr wstr long) msvcrt._wfsopen
@ cdecl _wfullpath(ptr wstr long) msvcrt._wfullpath
@ cdecl _wfullpath(ptr wstr long) msvcrt._wfullpath
@ cdecl _wgetcwd(wstr long) msvcrt._wgetcwd
@ cdecl _wgetcwd(wstr long) msvcrt._wgetcwd
...
...
dlls/msvcr90/msvcr90.spec
View file @
947d1bf5
...
@@ -1197,7 +1197,7 @@
...
@@ -1197,7 +1197,7 @@
@ cdecl _wfopen(wstr wstr) msvcrt._wfopen
@ cdecl _wfopen(wstr wstr) msvcrt._wfopen
@ cdecl _wfopen_s(ptr wstr wstr) msvcrt._wfopen_s
@ cdecl _wfopen_s(ptr wstr wstr) msvcrt._wfopen_s
@ cdecl _wfreopen(wstr wstr ptr) msvcrt._wfreopen
@ cdecl _wfreopen(wstr wstr ptr) msvcrt._wfreopen
@
stub
_wfreopen_s
@
cdecl _wfreopen_s(ptr wstr wstr ptr) msvcrt.
_wfreopen_s
@ cdecl _wfsopen(wstr wstr long) msvcrt._wfsopen
@ cdecl _wfsopen(wstr wstr long) msvcrt._wfsopen
@ cdecl _wfullpath(ptr wstr long) msvcrt._wfullpath
@ cdecl _wfullpath(ptr wstr long) msvcrt._wfullpath
@ cdecl _wgetcwd(wstr long) msvcrt._wgetcwd
@ cdecl _wgetcwd(wstr long) msvcrt._wgetcwd
...
...
dlls/msvcrt/file.c
View file @
947d1bf5
...
@@ -3277,6 +3277,25 @@ MSVCRT_FILE* CDECL MSVCRT__wfreopen(const MSVCRT_wchar_t *path, const MSVCRT_wch
...
@@ -3277,6 +3277,25 @@ MSVCRT_FILE* CDECL MSVCRT__wfreopen(const MSVCRT_wchar_t *path, const MSVCRT_wch
}
}
/*********************************************************************
/*********************************************************************
* _wfreopen_s (MSVCRT.@)
*/
int
CDECL
MSVCRT__wfreopen_s
(
MSVCRT_FILE
**
pFile
,
const
MSVCRT_wchar_t
*
path
,
const
MSVCRT_wchar_t
*
mode
,
MSVCRT_FILE
*
file
)
{
if
(
!
MSVCRT_CHECK_PMT
(
pFile
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
path
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
mode
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
file
!=
NULL
))
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
*
pFile
=
MSVCRT__wfreopen
(
path
,
mode
,
file
);
if
(
!*
pFile
)
return
*
MSVCRT__errno
();
return
0
;
}
/*********************************************************************
* freopen (MSVCRT.@)
* freopen (MSVCRT.@)
*
*
*/
*/
...
...
dlls/msvcrt/msvcrt.spec
View file @
947d1bf5
...
@@ -1133,7 +1133,7 @@
...
@@ -1133,7 +1133,7 @@
@ cdecl _wfopen(wstr wstr) MSVCRT__wfopen
@ cdecl _wfopen(wstr wstr) MSVCRT__wfopen
@ cdecl _wfopen_s(ptr wstr wstr) MSVCRT__wfopen_s
@ cdecl _wfopen_s(ptr wstr wstr) MSVCRT__wfopen_s
@ cdecl _wfreopen(wstr wstr ptr) MSVCRT__wfreopen
@ cdecl _wfreopen(wstr wstr ptr) MSVCRT__wfreopen
# stub _wfreopen_s(ptr wstr wstr ptr)
@ cdecl _wfreopen_s(ptr wstr wstr ptr) MSVCRT__wfreopen_s
@ cdecl _wfsopen(wstr wstr long) MSVCRT__wfsopen
@ cdecl _wfsopen(wstr wstr long) MSVCRT__wfsopen
@ cdecl _wfullpath(ptr wstr long)
@ cdecl _wfullpath(ptr wstr long)
# stub _wfullpath_dbg(ptr wstr long long str long)
# stub _wfullpath_dbg(ptr wstr long long str long)
...
...
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