[1/5] ntdll: Improved reporting of CPU Level and Revision on ARM

André Hentschel nerv at dawncrow.de
Sun Nov 10 15:40:23 CST 2013


---
 dlls/ntdll/nt.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index c9499d6..db8272f 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -1080,10 +1080,16 @@ static inline void get_cpuinfo(SYSTEM_CPU_INFORMATION* info)
             while (isspace(*value)) value++;
             if ((s = strchr(value,'\n')))
                 *s='\0';
-            if (!strcasecmp(line, "CPU architecture"))
+            if (!strcasecmp(line, "CPU part"))
             {
                 if (isdigit(value[0]))
-                    info->Level = atoi(value);
+                    info->Level = strtol(value, NULL, 16);
+                continue;
+            }
+            if (!strcasecmp(line, "CPU revision"))
+            {
+                if (isdigit(value[0]))
+                    info->Revision = atoi(value);
                 continue;
             }
             if (!strcasecmp(line, "features"))
-- 
1.8.1.2





More information about the wine-patches mailing list