commit b38417d5a95ec3b99595d5a6ca08a9cebd75d77e
Author: Francois Gouget <fgouget@free.fr>
Date:   Sat Jan 17 00:31:05 2009 +0100

    kernel32: Fix some bad left-over uses of value in the CPU detection code.

diff --git a/dlls/kernel32/cpu.c b/dlls/kernel32/cpu.c
index 95ac469..f102444 100644
--- a/dlls/kernel32/cpu.c
+++ b/dlls/kernel32/cpu.c
@@ -579,7 +579,7 @@ VOID WINAPI GetSystemInfo(
              val_len = sizeof(value);
              if (sysctl(mib, 2, &value, &val_len, NULL, 0) >= 0)
                  if (value > cachedsi.dwNumberOfProcessors)
-                    cachedsi.dwNumberOfProcessors = value[0];
+                    cachedsi.dwNumberOfProcessors = value;
              mib[1] = HW_MODEL;
              val_len = sizeof(model)-1;
              if (sysctl(mib, 2, model, &val_len, NULL, 0) >= 0) {
@@ -615,16 +615,17 @@ VOID WINAPI GetSystemInfo(
              if (f != NULL)
              {
 	         while (fgets(model, 255, f) != NULL) {
-                        if (sscanf(model,"cpu%d: features %x<", value, value+1) == 2) {
+                        int cpu, features;
+                        if (sscanf(model,"cpu%d: features %x<", &cpu, &features) == 2) {
                             /* we could scan the string but it is easier
                                to test the bits directly */
-                            if (value[1] & 0x1)
+                            if (features & 0x1)
                                 PF[PF_FLOATING_POINT_EMULATED] = TRUE;
-                            if (value[1] & 0x10)
+                            if (features & 0x10)
                                 PF[PF_RDTSC_INSTRUCTION_AVAILABLE] = TRUE;
-                            if (value[1] & 0x100)
+                            if (features & 0x100)
                                 PF[PF_COMPARE_EXCHANGE_DOUBLE] = TRUE;
-                            if (value[1] & 0x800000)
+                            if (features & 0x800000)
                                 PF[PF_MMX_INSTRUCTIONS_AVAILABLE] = TRUE;
 
                             break;
