This commit is contained in:
UnknownShadow200 2021-02-07 16:09:50 +11:00
parent 6276d7d0e2
commit 05ab96a615

View File

@ -1864,7 +1864,7 @@ static cc_result GetMachineID(cc_uint32* key) {
#ifdef kIOPlatformUUIDKey #ifdef kIOPlatformUUIDKey
uuid = IORegistryEntryCreateCFProperty(registry, CFSTR(kIOPlatformUUIDKey), kCFAllocatorDefault, 0); uuid = IORegistryEntryCreateCFProperty(registry, CFSTR(kIOPlatformUUIDKey), kCFAllocatorDefault, 0);
if (uuid && CFStringGetCString(uuid, tmp, sizeof(tmp), kCFStringEncodingUTF8))) { if (uuid && CFStringGetCString(uuid, tmp, sizeof(tmp), kCFStringEncodingUTF8)) {
DecodeMachineID(tmp, String_Length(tmp), key); DecodeMachineID(tmp, String_Length(tmp), key);
} }
#endif #endif