mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +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);
|
||||
#elif defined(OSX)
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user