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
f0122420
Commit
f0122420
authored
Nov 30, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Nov 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implement _wasctime_s.
parent
35722cb4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
4 deletions
+30
-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
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
time.c
dlls/msvcrt/time.c
+26
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
f0122420
...
...
@@ -1277,7 +1277,7 @@
@ cdecl _waccess(wstr long) msvcrt._waccess
@ cdecl _waccess_s(wstr long) msvcrt._waccess_s
@ cdecl _wasctime(ptr) msvcrt._wasctime
@
stub
_wasctime_s
@
cdecl _wasctime_s(ptr long ptr) msvcrt.
_wasctime_s
@ cdecl _wassert(wstr wstr long) msvcrt._wassert
@ cdecl _wchdir(wstr) msvcrt._wchdir
@ cdecl _wchmod(wstr long) msvcrt._wchmod
...
...
dlls/msvcr80/msvcr80.spec
View file @
f0122420
...
...
@@ -1130,7 +1130,7 @@
@ cdecl _waccess(wstr long) msvcrt._waccess
@ cdecl _waccess_s(wstr long) msvcrt._waccess_s
@ cdecl _wasctime(ptr) msvcrt._wasctime
@
stub
_wasctime_s
@
cdecl _wasctime_s(ptr long ptr) msvcrt.
_wasctime_s
@ cdecl _wassert(wstr wstr long) msvcrt._wassert
@ cdecl _wchdir(wstr) msvcrt._wchdir
@ cdecl _wchmod(wstr long) msvcrt._wchmod
...
...
dlls/msvcr90/msvcr90.spec
View file @
f0122420
...
...
@@ -1124,7 +1124,7 @@
@ cdecl _waccess(wstr long) msvcrt._waccess
@ cdecl _waccess_s(wstr long) msvcrt._waccess_s
@ cdecl _wasctime(ptr) msvcrt._wasctime
@
stub
_wasctime_s
@
cdecl _wasctime_s(ptr long ptr) msvcrt.
_wasctime_s
@ cdecl _wassert(wstr wstr long) msvcrt._wassert
@ cdecl _wchdir(wstr) msvcrt._wchdir
@ cdecl _wchmod(wstr long) msvcrt._wchmod
...
...
dlls/msvcrt/msvcrt.spec
View file @
f0122420
...
...
@@ -1060,7 +1060,7 @@
@ cdecl _waccess(wstr long) MSVCRT__waccess
@ cdecl _waccess_s(wstr long)
@ cdecl _wasctime(ptr) MSVCRT__wasctime
# stub _wasctime_s(ptr long ptr)
@ cdecl _wasctime_s(ptr long ptr) MSVCRT__wasctime_s
@ cdecl _wassert(wstr wstr long) MSVCRT__wassert
@ cdecl _wchdir(wstr) MSVCRT__wchdir
@ cdecl _wchmod(wstr long) MSVCRT__wchmod
...
...
dlls/msvcrt/time.c
View file @
f0122420
...
...
@@ -36,6 +36,7 @@
#include "winbase.h"
#include "winnls.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
...
...
@@ -950,6 +951,31 @@ MSVCRT_wchar_t * CDECL MSVCRT__wasctime(const struct MSVCRT_tm *mstm)
}
/*********************************************************************
* _wasctime_s (MSVCRT.@)
*/
int
CDECL
MSVCRT__wasctime_s
(
MSVCRT_wchar_t
*
time
,
MSVCRT_size_t
size
,
const
struct
MSVCRT_tm
*
mstm
)
{
WCHAR
*
asc
;
unsigned
int
len
;
if
(
!
MSVCRT_CHECK_PMT
(
time
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
mstm
!=
NULL
))
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
asc
=
MSVCRT__wasctime
(
mstm
);
len
=
(
strlenW
(
asc
)
+
1
)
*
sizeof
(
WCHAR
);
if
(
!
MSVCRT_CHECK_PMT
(
size
>=
len
))
{
*
MSVCRT__errno
()
=
MSVCRT_ERANGE
;
return
MSVCRT_ERANGE
;
}
strcpyW
(
time
,
asc
);
return
0
;
}
/*********************************************************************
* _ctime64 (MSVCRT.@)
*/
char
*
CDECL
MSVCRT__ctime64
(
const
MSVCRT___time64_t
*
time
)
...
...
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