Temporary fix for invalid hardware guids.
This commit is contained in:
parent
b58e62e5e4
commit
8f9b703dbb
@ -33,6 +33,12 @@ namespace Steam
|
||||
CryptProtectData(Data, NULL, NULL, NULL, NULL, CRYPTPROTECT_LOCAL_MACHINE, &Data[1]);
|
||||
|
||||
subId = ::Utils::OneAtATime((char*)Data[1].pbData, 52);
|
||||
|
||||
if (!subId)
|
||||
{
|
||||
Components::Logger::Print("Hardware-based GUID generation failed!\n");
|
||||
subId = (Game::Com_Milliseconds() + timeGetTime());
|
||||
}
|
||||
}
|
||||
else // Random guid
|
||||
{
|
||||
|
@ -85,9 +85,9 @@ namespace Steam
|
||||
RegCloseKey(hRegKey);
|
||||
|
||||
SetDllDirectory(steamPath);
|
||||
}
|
||||
|
||||
Overlay = LoadLibraryA(::Utils::VA("%s\\%s", steamPath, "gameoverlayrenderer.dll"));
|
||||
Overlay = LoadLibraryA(::Utils::VA("%s\\%s", steamPath, "gameoverlayrenderer.dll"));
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user