[2/3] ntdll: Parse ARM CPU level
André Hentschel
nerv at dawncrow.de
Wed Jun 15 13:52:33 CDT 2011
---
dlls/ntdll/nt.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index 316e9f6..80013cb 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -990,12 +990,13 @@ void fill_cpu_info(void)
continue;
}
- /* 2.1 method */
- if (!strcasecmp(line, "cpu family"))
+ /* 2.1 and ARM method */
+ if (!strcasecmp(line, "cpu family") || !strcasecmp(line, "CPU architecture"))
{
if (isdigit(value[0]))
{
- cached_sci.Level = atoi(value);
+ value[1] = '\0'; /* Make sure we only get one character */
+ cached_sci.Level = atoi(value);
}
continue;
}
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list