Use GetLocaleInfoW ()

This commit is contained in:
Luca Bacci 2022-12-30 17:00:03 +01:00 committed by Jehan
parent abe7c53cf5
commit 1e24240f5d
1 changed files with 4 additions and 4 deletions

View File

@ -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 */
{