mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-07 22:14:38 +02:00
Use corret name for length variable
This commit is contained in:
parent
6326115662
commit
ef13902206
@ -357,13 +357,14 @@ generic_string Buffer::getFileTime(fileTimeType ftt) const
|
|||||||
FileTimeToSystemTime(&rawtime, &utcSystemTime);
|
FileTimeToSystemTime(&rawtime, &utcSystemTime);
|
||||||
SystemTimeToTzSpecificLocalTime(nullptr, &utcSystemTime, &localSystemTime);
|
SystemTimeToTzSpecificLocalTime(nullptr, &utcSystemTime, &localSystemTime);
|
||||||
|
|
||||||
TCHAR bufDate[MAX_PATH];
|
const size_t dateTimeStrLen = 256;
|
||||||
GetDateFormat(LOCALE_USER_DEFAULT, 0, &localSystemTime, nullptr, bufDate, MAX_PATH);
|
TCHAR bufDate[dateTimeStrLen] = {'\0'};
|
||||||
|
GetDateFormat(LOCALE_USER_DEFAULT, 0, &localSystemTime, nullptr, bufDate, dateTimeStrLen);
|
||||||
result += bufDate;
|
result += bufDate;
|
||||||
result += ' ';
|
result += ' ';
|
||||||
|
|
||||||
TCHAR bufTime[MAX_PATH];
|
TCHAR bufTime[dateTimeStrLen] = {'\0'};
|
||||||
GetTimeFormat(LOCALE_USER_DEFAULT, 0, &localSystemTime, nullptr, bufTime, MAX_PATH);
|
GetTimeFormat(LOCALE_USER_DEFAULT, 0, &localSystemTime, nullptr, bufTime, dateTimeStrLen);
|
||||||
result += bufTime;
|
result += bufTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user