Update confid.cpp

This commit is contained in:
pottzman 2023-09-07 17:16:00 +10:00 committed by GitHub
parent 25db955b61
commit a7e97e45ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -940,8 +940,7 @@ int ConfirmationID::Generate(const char* installation_id_str, char confirmation_
for (; *p; p++) {
*p = toupper((unsigned char)*p);
}
p = &channelid[0];
if (strcmp(p, "OEM") == 0) {
if (strcmp(&channelid[0], "OEM") == 0) {
productID[3] = ((stoi(productid.substr(10,2))) * 1000) + productID[3];
} else {
productID[3] = ((stoi(productid.substr(18,2))) * 1000) + productID[3];