mirror of https://github.com/GNOME/gimp.git
Use GetLocaleInfoW ()
This commit is contained in:
parent
abe7c53cf5
commit
1e24240f5d
|
@ -213,10 +213,10 @@ gimp_get_default_unit (void)
|
|||
DWORD measurement;
|
||||
int ret;
|
||||
|
||||
ret = GetLocaleInfo(LOCALE_USER_DEFAULT,
|
||||
LOCALE_IMEASURE | LOCALE_RETURN_NUMBER,
|
||||
(LPTSTR)&measurement,
|
||||
sizeof(measurement) / sizeof(TCHAR) );
|
||||
ret = GetLocaleInfoW (LOCALE_USER_DEFAULT,
|
||||
LOCALE_IMEASURE | LOCALE_RETURN_NUMBER,
|
||||
(LPWSTR) &measurement,
|
||||
sizeof (measurement) / sizeof (wchar_t));
|
||||
|
||||
if (ret != 0) /* GetLocaleInfo succeeded */
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue