Fix comparing an array in a conditional, which is always true

Instead, check the intent of the original code, if the `szImg` string is
not empty.

Signed-off-by: Chris Burel <burelc@amazon.com>
This commit is contained in:
Chris Burel
2022-02-10 12:50:56 -08:00
parent cff6fb97af
commit b44c362af0
@@ -596,7 +596,7 @@ namespace AZ {
result = GetLastError();
}
ULONGLONG fileVersion = 0;
if (szImg != NULL)
if (szImg[0]) // !szImg.empty()
{
// try to retrieve the file-version:
VS_FIXEDFILEINFO* fInfo = NULL;