Commit 16237842 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Add FloatingPointProcessor empty entry to the registry.

parent 9cdd22c5
...@@ -73,9 +73,12 @@ VOID WINAPI GetSystemInfo( ...@@ -73,9 +73,12 @@ VOID WINAPI GetSystemInfo(
/* Hmm, reasonable processor feature defaults? */ /* Hmm, reasonable processor feature defaults? */
/* Create this registry key for all systems */ /* Create these registry keys for all systems
if (RegCreateKeyA(HKEY_LOCAL_MACHINE,"HARDWARE\\DESCRIPTION\\System\\CentralProcessor",&hkey)!=ERROR_SUCCESS) { * FPU entry is often empty on Windows, so we don't care either */
WARN("Unable to register CPU information\n"); if ( (RegCreateKeyA(HKEY_LOCAL_MACHINE,"HARDWARE\\DESCRIPTION\\System\\FloatingPointProcessor",&hkey)!=ERROR_SUCCESS)
|| (RegCreateKeyA(HKEY_LOCAL_MACHINE,"HARDWARE\\DESCRIPTION\\System\\CentralProcessor",&hkey)!=ERROR_SUCCESS) )
{
WARN("Unable to write FPU/CPU info to registry\n");
} }
#ifdef linux #ifdef linux
...@@ -167,7 +170,7 @@ VOID WINAPI GetSystemInfo( ...@@ -167,7 +170,7 @@ VOID WINAPI GetSystemInfo(
continue; continue;
} }
if (!strncasecmp(line,"processor",strlen("processor"))) { if (!strncasecmp(line,"processor",strlen("processor"))) {
/* processor number counts up...*/ /* processor number counts up... */
unsigned int x; unsigned int x;
if (sscanf(value,"%d",&x)) if (sscanf(value,"%d",&x))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment