1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-02-10 05:30:14 +00:00

Addressed IOActive issues

This commit is contained in:
Bryan Roe
2020-07-15 01:24:56 -07:00
parent 70593e995b
commit 67fc6c54b1
14 changed files with 65 additions and 80 deletions

View File

@@ -814,10 +814,14 @@ __EXPORT_TYPE int ILibSimpleDataStore_GetEx(ILibSimpleDataStore dataStore, char*
return(centry->valueLength);
}
else
else if(buffer == NULL)
{
return(centry->valueLength);
}
else
{
return(0);
}
}
}
@@ -869,7 +873,8 @@ __EXPORT_TYPE int ILibSimpleDataStore_GetEx(ILibSimpleDataStore dataStore, char*
return(0);
}
}
return entry->valueLength;
return(buffer == NULL ? entry->valueLength : 0);
}
// Get the reference to the SHA384 hash value from the datastore for a given a key.