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
4bb1e9c3
Commit
4bb1e9c3
authored
Dec 07, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _Gettnames implementation.
parent
344883fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
locale.c
dlls/msvcrt/locale.c
+21
-4
No files found.
dlls/msvcrt/locale.c
View file @
4bb1e9c3
...
...
@@ -444,11 +444,28 @@ const char* CDECL _Getmonths(void)
/*********************************************************************
* _Gettnames (MSVCRT.@)
*/
const
char
*
CDECL
_Gettnames
(
void
)
void
*
CDECL
_Gettnames
(
void
)
{
/* FIXME: */
TRACE
(
"(void) stub
\n
"
);
return
""
;
MSVCRT___lc_time_data
*
ret
,
*
cur
=
get_locinfo
()
->
lc_time_curr
;
int
i
,
size
=
sizeof
(
MSVCRT___lc_time_data
);
TRACE
(
"
\n
"
);
for
(
i
=
0
;
i
<
sizeof
(
cur
->
str
)
/
sizeof
(
cur
->
str
[
0
]);
i
++
)
size
+=
strlen
(
cur
->
str
[
i
])
+
1
;
ret
=
MSVCRT_malloc
(
size
);
if
(
!
ret
)
return
NULL
;
memcpy
(
ret
,
cur
,
size
);
size
=
0
;
for
(
i
=
0
;
i
<
sizeof
(
cur
->
str
)
/
sizeof
(
cur
->
str
[
0
]);
i
++
)
{
ret
->
str
[
i
]
=
&
ret
->
data
[
size
];
size
+=
strlen
(
&
ret
->
data
[
size
])
+
1
;
}
return
ret
;
}
/*********************************************************************
...
...
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