Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion licensing/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ def GetMachineCode(v=1):
machineGUID = Helpers.__read_registry_value(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Cryptography", "MachineGuid")

if machineGUID != None and machineGUID != "":
HelperMethods.get_SHA256(machineGUID)
return HelperMethods.get_SHA256(machineGUID)
return None
else:
return HelperMethods.get_SHA256(seed)
Expand Down Expand Up @@ -1464,6 +1464,9 @@ def IsOnRightMachine(license_key, is_floating_license = False, allow_overdraft=F
current_mid = Helpers.GetMachineCode(v)
else:
current_mid = custom_machine_code

if current_mid is None:
return False

if license_key.activated_machines == None:
return False
Expand Down