kernel32: Set processorLevel to cpu family.

This commit is contained in:
Alexander Nicolaysen Sørnes 2008-03-30 00:44:19 +01:00 committed by Alexandre Julliard
parent 76014205de
commit 10e9c6bfd1
1 changed files with 3 additions and 12 deletions

View File

@ -454,19 +454,10 @@ VOID WINAPI GetSystemInfo(
case 5: cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
cachedsi.wProcessorLevel= 5;
break;
case 6: cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
cachedsi.wProcessorLevel= 6;
break;
case 1: /* two-figure levels */
if (value[1] == '5')
{
cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
cachedsi.wProcessorLevel= 6;
break;
}
/* fall through */
default:
FIXME("unknown cpu family '%s', please report ! (-> setting to 386)\n", value);
cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
cachedsi.wProcessorLevel = atoi(value);
break;
}
}