=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: ntdll: Fix CPU level on ARM.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 27 08:55:18 CDT 2015


Module: wine
Branch: master
Commit: 2b5deddc05c0483e400e286e496268ca589b3a26
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2b5deddc05c0483e400e286e496268ca589b3a26

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Mar 26 23:17:14 2015 +0100

ntdll: Fix CPU level on ARM.

---

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

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




More information about the wine-cvs mailing list