Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
1e24240f
Commit
1e24240f
authored
Dec 30, 2022
by
Luca Bacci
Committed by
Jehan
Jan 24, 2023
Browse files
Use GetLocaleInfoW ()
parent
abe7c53c
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/core/gimp-utils.c
View file @
1e24240f
...
...
@@ -213,10 +213,10 @@ gimp_get_default_unit (void)
DWORD
measurement
;
int
ret
;
ret
=
GetLocaleInfo
(
LOCALE_USER_DEFAULT
,
LOCALE_IMEASURE
|
LOCALE_RETURN_NUMBER
,
(
LP
T
STR
)
&
measurement
,
sizeof
(
measurement
)
/
sizeof
(
TCHAR
)
);
ret
=
GetLocaleInfo
W
(
LOCALE_USER_DEFAULT
,
LOCALE_IMEASURE
|
LOCALE_RETURN_NUMBER
,
(
LP
W
STR
)
&
measurement
,
sizeof
(
measurement
)
/
sizeof
(
wchar_t
)
);
if
(
ret
!=
0
)
/* GetLocaleInfo succeeded */
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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