mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
fix OS identification (#5880)
This commit is contained in:
parent
b0445e1e21
commit
305cb6d647
@ -143,12 +143,14 @@ static void frontend_win32_get_os(char *s, size_t len, int *major, int *minor)
|
||||
OSVERSIONINFOEX vi = {0};
|
||||
vi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
|
||||
|
||||
server = vi.wProductType != VER_NT_WORKSTATION;
|
||||
|
||||
serverR2 = GetSystemMetrics(SM_SERVERR2);
|
||||
|
||||
GetSystemInfo(&si);
|
||||
|
||||
/* Available from NT 3.5 and Win95 */
|
||||
GetVersionEx((OSVERSIONINFO*)&vi);
|
||||
|
||||
server = vi.wProductType != VER_NT_WORKSTATION;
|
||||
serverR2 = GetSystemMetrics(SM_SERVERR2);
|
||||
|
||||
switch (si.wProcessorArchitecture)
|
||||
{
|
||||
case PROCESSOR_ARCHITECTURE_AMD64:
|
||||
@ -166,10 +168,11 @@ static void frontend_win32_get_os(char *s, size_t len, int *major, int *minor)
|
||||
#else
|
||||
OSVERSIONINFO vi = {0};
|
||||
vi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
|
||||
#endif
|
||||
|
||||
/* Available from NT 3.5 and Win95 */
|
||||
GetVersionEx((OSVERSIONINFO*)&vi);
|
||||
GetVersionEx(&vi);
|
||||
#endif
|
||||
|
||||
|
||||
if (major)
|
||||
*major = vi.dwMajorVersion;
|
||||
|
@ -681,7 +681,7 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info)
|
||||
strlcpy(cpu_arch_str, "x86", sizeof(cpu_arch_str));
|
||||
break;
|
||||
case FRONTEND_ARCH_X86_64:
|
||||
strlcpy(cpu_arch_str, "x86-64", sizeof(cpu_arch_str));
|
||||
strlcpy(cpu_arch_str, "x64", sizeof(cpu_arch_str));
|
||||
break;
|
||||
case FRONTEND_ARCH_PPC:
|
||||
strlcpy(cpu_arch_str, "PPC", sizeof(cpu_arch_str));
|
||||
|
Loading…
x
Reference in New Issue
Block a user