mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
BUG: strlen logic was backwards resulting in function body never actually executing... when called with valid strings, it was always doing nothing and returning false... now it works as expected.
This commit is contained in:
parent
65e3842d51
commit
76d05cd5fa
@ -1764,7 +1764,7 @@ long int SystemTools::CreationTime(const char* filename)
|
||||
|
||||
bool SystemTools::ConvertDateMacroString(const char *str, time_t *tmt)
|
||||
{
|
||||
if (!str || !tmt || strlen(str) < 12)
|
||||
if (!str || !tmt || strlen(str) > 11)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -1812,7 +1812,7 @@ bool SystemTools::ConvertDateMacroString(const char *str, time_t *tmt)
|
||||
|
||||
bool SystemTools::ConvertTimeStampMacroString(const char *str, time_t *tmt)
|
||||
{
|
||||
if (!str || !tmt || strlen(str) < 27)
|
||||
if (!str || !tmt || strlen(str) > 26)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user