mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
CPP: Update comment in qhelp sample for accuracy and consistency.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user