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
7b8ac6a2
Commit
7b8ac6a2
authored
Nov 03, 2010
by
Eryk Wieliczko
Committed by
Alexandre Julliard
Nov 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implement _get_tzname.
parent
c4c091d4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
5 deletions
+40
-5
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
-0
time.c
dlls/msvcrt/time.c
+36
-2
No files found.
dlls/msvcr100/msvcr100.spec
View file @
7b8ac6a2
...
...
@@ -690,7 +690,7 @@
@ stub _get_purecall_handler
@ stub _get_terminate
@ stub _get_timezone
@
stub
_get_tzname
@
cdecl _get_tzname(ptr str long long) msvcrt.
_get_tzname
@ stub _get_unexpected
@ stub _get_wpgmptr
@ stub _getc_nolock
...
...
dlls/msvcr80/msvcr80.spec
View file @
7b8ac6a2
...
...
@@ -535,7 +535,7 @@
@ cdecl _get_sbh_threshold() msvcrt._get_sbh_threshold
@ stub _get_terminate
@ stub _get_timezone
@
stub
_get_tzname
@
cdecl _get_tzname(ptr str long long) msvcrt.
_get_tzname
@ stub _get_unexpected
@ stub _get_winmajor
@ stub _get_winminor
...
...
dlls/msvcr90/msvcr90.spec
View file @
7b8ac6a2
...
...
@@ -525,7 +525,7 @@
@ cdecl _get_sbh_threshold() msvcrt._get_sbh_threshold
@ stub _get_terminate
@ stub _get_timezone
@
stub
_get_tzname
@
cdecl _get_tzname(ptr str long long) msvcrt.
_get_tzname
@ stub _get_unexpected
@ stub _get_wpgmptr
@ stub _getc_nolock
...
...
dlls/msvcrt/msvcrt.spec
View file @
7b8ac6a2
...
...
@@ -483,6 +483,7 @@
# stub _get_winver
# stub _get_wpgmptr
@ stub _get_terminate
@ cdecl _get_tzname(ptr str long long) MSVCRT__get_tzname
@ stub _get_unexpected
@ cdecl _getch()
@ cdecl _getche()
...
...
dlls/msvcrt/time.c
View file @
7b8ac6a2
...
...
@@ -719,11 +719,45 @@ MSVCRT_long * CDECL MSVCRT___p__timezone(void)
* must be large enough. The size is picked based on observation of
* Windows XP.
*/
static
char
tzname_std
[
64
]
=
""
;
static
char
tzname_dst
[
64
]
=
""
;
static
char
tzname_std
[
64
]
=
"
PST
"
;
static
char
tzname_dst
[
64
]
=
"
PDT
"
;
char
*
MSVCRT__tzname
[
2
]
=
{
tzname_std
,
tzname_dst
};
/*********************************************************************
* _get_tzname (MSVCRT.@)
*/
int
CDECL
MSVCRT__get_tzname
(
MSVCRT_size_t
*
ret
,
char
*
buf
,
MSVCRT_size_t
bufsize
,
int
index
)
{
char
*
timezone
;
switch
(
index
)
{
case
0
:
timezone
=
tzname_std
;
break
;
case
1
:
timezone
=
tzname_dst
;
break
;
default:
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
if
(
!
ret
||
(
!
buf
&&
bufsize
>
0
)
||
(
buf
&&
!
bufsize
))
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
*
ret
=
strlen
(
timezone
)
+
1
;
if
(
!
buf
&&
!
bufsize
)
return
0
;
strcpy
(
buf
,
timezone
);
return
0
;
}
/*********************************************************************
* __p_tzname (MSVCRT.@)
*/
char
**
CDECL
__p__tzname
(
void
)
...
...
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