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
c4b41fd4
Commit
c4b41fd4
authored
Dec 04, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Mark __lc_time_data strings const.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1b6eee30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
locale.c
dlls/msvcrt/locale.c
+1
-1
msvcrt.h
dlls/msvcrt/msvcrt.h
+21
-21
No files found.
dlls/msvcrt/locale.c
View file @
c4b41fd4
...
...
@@ -1016,7 +1016,7 @@ static MSVCRT___lc_time_data* create_time_data(LCID lcid)
}
#if _MSVCR_VER >= 110
cur
->
locname
=
(
MSVCRT_wchar_t
*
)
&
cur
->
data
[
ret
];
LCIDToLocaleName
(
lcid
,
cur
->
locname
,
(
size
-
ret
)
/
sizeof
(
MSVCRT_wchar_t
),
0
);
LCIDToLocaleName
(
lcid
,
(
MSVCRT_wchar_t
*
)
&
cur
->
data
[
ret
]
,
(
size
-
ret
)
/
sizeof
(
MSVCRT_wchar_t
),
0
);
#else
cur
->
lcid
=
lcid
;
#endif
...
...
dlls/msvcrt/msvcrt.h
View file @
c4b41fd4
...
...
@@ -125,17 +125,17 @@ typedef struct MSVCRT_tagLC_ID {
typedef
struct
{
union
{
char
*
str
[
43
];
c
onst
c
har
*
str
[
43
];
struct
{
char
*
short_wday
[
7
];
char
*
wday
[
7
];
char
*
short_mon
[
12
];
char
*
mon
[
12
];
char
*
am
;
char
*
pm
;
char
*
short_date
;
char
*
date
;
char
*
time
;
c
onst
c
har
*
short_wday
[
7
];
c
onst
c
har
*
wday
[
7
];
c
onst
c
har
*
short_mon
[
12
];
c
onst
c
har
*
mon
[
12
];
c
onst
c
har
*
am
;
c
onst
c
har
*
pm
;
c
onst
c
har
*
short_date
;
c
onst
c
har
*
date
;
c
onst
c
har
*
time
;
}
names
;
}
str
;
#if _MSVCR_VER < 110
...
...
@@ -143,21 +143,21 @@ typedef struct {
#endif
int
unk
[
2
];
union
{
MSVCRT_wchar_t
*
wstr
[
43
];
const
MSVCRT_wchar_t
*
wstr
[
43
];
struct
{
MSVCRT_wchar_t
*
short_wday
[
7
];
MSVCRT_wchar_t
*
wday
[
7
];
MSVCRT_wchar_t
*
short_mon
[
12
];
MSVCRT_wchar_t
*
mon
[
12
];
MSVCRT_wchar_t
*
am
;
MSVCRT_wchar_t
*
pm
;
MSVCRT_wchar_t
*
short_date
;
MSVCRT_wchar_t
*
date
;
MSVCRT_wchar_t
*
time
;
const
MSVCRT_wchar_t
*
short_wday
[
7
];
const
MSVCRT_wchar_t
*
wday
[
7
];
const
MSVCRT_wchar_t
*
short_mon
[
12
];
const
MSVCRT_wchar_t
*
mon
[
12
];
const
MSVCRT_wchar_t
*
am
;
const
MSVCRT_wchar_t
*
pm
;
const
MSVCRT_wchar_t
*
short_date
;
const
MSVCRT_wchar_t
*
date
;
const
MSVCRT_wchar_t
*
time
;
}
names
;
}
wstr
;
#if _MSVCR_VER >= 110
MSVCRT_wchar_t
*
locname
;
const
MSVCRT_wchar_t
*
locname
;
#endif
char
data
[
1
];
}
MSVCRT___lc_time_data
;
...
...
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