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>
monroegm-disable-blank-issue-2
Chris Burel 4 years ago
parent cff6fb97af
commit b44c362af0

@ -596,7 +596,7 @@ namespace AZ {
result = GetLastError(); result = GetLastError();
} }
ULONGLONG fileVersion = 0; ULONGLONG fileVersion = 0;
if (szImg != NULL) if (szImg[0]) // !szImg.empty()
{ {
// try to retrieve the file-version: // try to retrieve the file-version:
VS_FIXEDFILEINFO* fInfo = NULL; VS_FIXEDFILEINFO* fInfo = NULL;

Loading…
Cancel
Save