Commit 947d1bf5 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

msvcrt: Implement _wfreopen_s.

parent ba5b0c34
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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.@)
* *
*/ */
......
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment