CPP: Update comment in qhelp sample for accuracy and consistency.

This commit is contained in:
Geoffrey White
2019-06-25 17:26:25 +01:00
parent fe315a9a1c
commit ac5b62ccff

View File

@@ -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
}
}