Commit 1e24240f authored by Luca Bacci's avatar Luca Bacci Committed by Jehan
Browse files

Use GetLocaleInfoW ()

parent abe7c53c
......@@ -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 */
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment