fix Isle::ReadRegInt

This commit is contained in:
Christian Semmler 2023-06-20 16:20:16 +02:00
parent 4ec8c928f0
commit d2544585ad
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C

View File

@ -155,12 +155,12 @@ int Isle::ReadRegInt(LPCSTR name, int *out)
{
char buffer[256];
if (ReadReg(name, buffer, sizeof(buffer))) {
BOOL read = ReadReg(name, buffer, sizeof(buffer));
if (read) {
*out = atoi(buffer);
return TRUE;
}
return FALSE;
return read;
}
// OFFSET: ISLE 0x4028d0