mirror of
https://github.com/Neo-Desktop/WindowsXPKg
synced 2024-11-18 03:41:00 +02:00
Update confid.cpp
This commit is contained in:
parent
b451a04f3c
commit
1aeceb28f1
@ -925,10 +925,11 @@ int ConfirmationID::Generate(const char* installation_id_str, char confirmation_
|
|||||||
case 3:
|
case 3:
|
||||||
decode_iid_new_version(installation_id, hardwareID, &version);
|
decode_iid_new_version(installation_id, hardwareID, &version);
|
||||||
productID[0] = stoi(productid.substr(0,5));
|
productID[0] = stoi(productid.substr(0,5));
|
||||||
if (stoi(productid.substr(6,3)) == 0) {
|
int channelID = stoi(productid.substr(6,3));
|
||||||
productID[3] = (stoi((productid.substr(10,2)))) * 1000;
|
if (channelID == 0) {
|
||||||
|
productID[3] = ((stoi(productid.substr(10,2))) * 1000) + productID[3];
|
||||||
} else {
|
} else {
|
||||||
productID[3] = stoi(productid.substr(18,5));
|
productID[3] = ((stoi(productid.substr(18,2))) * 1000) + productID[3];
|
||||||
}
|
}
|
||||||
switch (activationMode) {
|
switch (activationMode) {
|
||||||
case 2:
|
case 2:
|
||||||
|
Loading…
Reference in New Issue
Block a user