X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fdll%2Fwin32%2Fshell32%2Fshell32.cpp;h=a4a363e8f72e7f257da415ecb30be778dca79fdc;hp=ea8af8a9287cc01b0ec99d021f18b4bdb40a3954;hb=a465b60e7fc588360c31bca8dbee136cf45e55df;hpb=0c9cd421eea429371613371ce24832165f8f9678 diff --git a/reactos/dll/win32/shell32/shell32.cpp b/reactos/dll/win32/shell32/shell32.cpp index ea8af8a9287..a4a363e8f72 100644 --- a/reactos/dll/win32/shell32/shell32.cpp +++ b/reactos/dll/win32/shell32/shell32.cpp @@ -42,20 +42,19 @@ AddCommasW(DWORD lValue, LPWSTR lpNumber) numFormat.NumDigits = 0; numFormat.LeadingZero = 0; - numFormat.Grouping = 0; // FIXME! Use GetLocaleInfoW with LOCALE_SGROUPING and interpret the result. + numFormat.Grouping = 3; // FIXME! Use GetLocaleInfoW with LOCALE_SGROUPING and interpret the result. numFormat.lpDecimalSep = szSeparator; numFormat.lpThousandSep = szSeparator; numFormat.NegativeOrder = 0; - swprintf(szValue, L"%llu", lValue); - //_ultow(lValue, szValue, 10); + swprintf(szValue, L"%lu", lValue); if (GetNumberFormatW(LOCALE_USER_DEFAULT, 0, szValue, &numFormat, lpNumber, - wcslen(lpNumber)) != 0) + MAX_PATH) != 0) { return lpNumber; }