Skip to content
Snippets Groups Projects
Commit 16237842 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard
Browse files

Add FloatingPointProcessor empty entry to the registry.

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