Alexander Nicolaysen Sørnes : kernel32: Set processorLevel to cpu family.
Alexandre Julliard
julliard at winehq.org
Mon Mar 31 09:15:20 CDT 2008
Module: wine
Branch: master
Commit: 10e9c6bfd17b05dbd7a98fa5f7ee3422bee7995a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=10e9c6bfd17b05dbd7a98fa5f7ee3422bee7995a
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Sun Mar 30 00:44:19 2008 +0100
kernel32: Set processorLevel to cpu family.
---
dlls/kernel32/cpu.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/dlls/kernel32/cpu.c b/dlls/kernel32/cpu.c
index a2ecb34..a49df99 100644
--- a/dlls/kernel32/cpu.c
+++ b/dlls/kernel32/cpu.c
@@ -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;
}
}
More information about the wine-cvs
mailing list