зеркало из https://github.com/github/codeql.git
CPP: Update comment in qhelp sample for accuracy and consistency.
This commit is contained in:
Родитель
fe315a9a1c
Коммит
ac5b62ccff
|
@ -2,7 +2,7 @@ SYSTEMTIME st;
|
|||
FILETIME ft;
|
||||
GetSystemTime(&st);
|
||||
|
||||
// Flawed logic will result in invalid date
|
||||
// Flawed logic may result in invalid date
|
||||
st.wYear++;
|
||||
|
||||
// Check for leap year, and adjust the date accordingly
|
||||
|
@ -12,4 +12,4 @@ st.wDay = st.wMonth == 2 && st.wDay == 29 && !isLeapYear ? 28 : st.wDay;
|
|||
if (!SystemTimeToFileTime(&st, &ft))
|
||||
{
|
||||
// handle error
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче