[core,gateway] fix tautological check in arm

This commit is contained in:
akallabeth 2023-09-20 16:30:33 +02:00 committed by Martin Fleisz
parent 99f26f1f01
commit 0595f2f7fe

View File

@ -689,7 +689,7 @@ static BOOL arm_fill_rdstls(rdpArm* arm, rdpSettings* settings, const cJSON* jso
}; /* A GUID string is between 32 and 68 characters as string, depending on representation.
Add a few extra bytes for braces et al */
const SSIZE_T wGUID_len = ConvertUtf8ToWChar(redirectedAuthGuid, wGUID, ARRAYSIZE(wGUID));
if (!wGUID || (wGUID_len < 0))
if (wGUID_len < 0)
{
WLog_ERR(TAG, "unable to allocate space for redirectedAuthGuid");
ret = FALSE;