mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 14:23:06 +00:00
(OSX) Fix frontend_darwin_get_name
This commit is contained in:
parent
4461ff8442
commit
f1923f9a84
@ -293,7 +293,9 @@ static void frontend_darwin_get_name(char *s, size_t len)
|
|||||||
strlcpy(s, buffer.machine, len);
|
strlcpy(s, buffer.machine, len);
|
||||||
#elif defined(OSX)
|
#elif defined(OSX)
|
||||||
size_t length = 0;
|
size_t length = 0;
|
||||||
sysctlbyname("hw.model", s, &length, NULL, 0);
|
sysctlbyname("hw.model", NULL, &length, NULL, 0);
|
||||||
|
if (length)
|
||||||
|
sysctlbyname("hw.model", s, &length, NULL, 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user