SL-10565 LLMachineID crashes

meow-7.2.2
andreykproductengine 2019-04-30 15:23:06 +03:00
parent 89cfffa15f
commit 47bb094b47
1 changed files with 2 additions and 2 deletions

View File

@ -224,11 +224,11 @@ S32 LLMachineID::init()
unsigned int serial_size = SysStringLen(serialNumber);
unsigned int j = 0;
while (j < serial_size)
while (j < serial_size && vtProp.bstrVal[j] != 0)
{
for (unsigned int i = 0; i < len; i++)
{
if (j >= serial_size)
if (j >= serial_size || vtProp.bstrVal[j] == 0)
break;
static_unique_id[i] = (unsigned int)(static_unique_id[i] + serialNumber[j]);