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
c5e88a3a
Commit
c5e88a3a
authored
Jun 28, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use the correct strdup function for locale data.
parent
f71c4113
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
locale.c
dlls/msvcrt/locale.c
+5
-5
No files found.
dlls/msvcrt/locale.c
View file @
c5e88a3a
...
...
@@ -741,7 +741,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
return
NULL
;
}
}
else
loc
->
locinfo
->
lc_category
[
MSVCRT_LC_COLLATE
].
locale
=
strdup
(
"C"
);
loc
->
locinfo
->
lc_category
[
MSVCRT_LC_COLLATE
].
locale
=
_
strdup
(
"C"
);
if
(
lcid
[
MSVCRT_LC_CTYPE
]
&&
(
category
==
MSVCRT_LC_ALL
||
category
==
MSVCRT_LC_CTYPE
))
{
CPINFO
cp
;
...
...
@@ -783,7 +783,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
loc
->
locinfo
->
lc_clike
=
1
;
loc
->
locinfo
->
mb_cur_max
=
1
;
loc
->
locinfo
->
pctype
=
MSVCRT__ctype
+
1
;
loc
->
locinfo
->
lc_category
[
MSVCRT_LC_CTYPE
].
locale
=
strdup
(
"C"
);
loc
->
locinfo
->
lc_category
[
MSVCRT_LC_CTYPE
].
locale
=
_
strdup
(
"C"
);
}
for
(
i
=
0
;
i
<
256
;
i
++
)
...
...
@@ -988,7 +988,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
loc
->
locinfo
->
lconv
->
p_sign_posn
=
127
;
loc
->
locinfo
->
lconv
->
n_sign_posn
=
127
;
loc
->
locinfo
->
lc_category
[
MSVCRT_LC_MONETARY
].
locale
=
strdup
(
"C"
);
loc
->
locinfo
->
lc_category
[
MSVCRT_LC_MONETARY
].
locale
=
_
strdup
(
"C"
);
}
if
(
lcid
[
MSVCRT_LC_NUMERIC
]
&&
(
category
==
MSVCRT_LC_ALL
||
category
==
MSVCRT_LC_NUMERIC
))
{
...
...
@@ -1055,7 +1055,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
loc
->
locinfo
->
lconv
->
thousands_sep
[
0
]
=
'\0'
;
loc
->
locinfo
->
lconv
->
grouping
[
0
]
=
'\0'
;
loc
->
locinfo
->
lc_category
[
MSVCRT_LC_NUMERIC
].
locale
=
strdup
(
"C"
);
loc
->
locinfo
->
lc_category
[
MSVCRT_LC_NUMERIC
].
locale
=
_
strdup
(
"C"
);
}
if
(
lcid
[
MSVCRT_LC_TIME
]
&&
(
category
==
MSVCRT_LC_ALL
||
category
==
MSVCRT_LC_TIME
))
{
...
...
@@ -1064,7 +1064,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
return
NULL
;
}
}
else
loc
->
locinfo
->
lc_category
[
MSVCRT_LC_TIME
].
locale
=
strdup
(
"C"
);
loc
->
locinfo
->
lc_category
[
MSVCRT_LC_TIME
].
locale
=
_
strdup
(
"C"
);
return
loc
;
}
...
...
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