1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-10 21:33:38 +00:00

Fixed bug in IOActive fix

This commit is contained in:
Bryan Roe
2020-07-15 01:42:12 -07:00
parent 67fc6c54b1
commit 0902718a47

View File

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