wbemprox: Strip trailing spaces from processor name.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2019-01-25 10:44:11 +01:00 committed by Alexandre Julliard
parent 48554a2645
commit d1f70b17e6
1 changed files with 2 additions and 0 deletions

View File

@ -2907,6 +2907,7 @@ static void get_processor_manufacturer( WCHAR *manufacturer )
static void get_processor_name( WCHAR *name )
{
unsigned int regs[4] = {0, 0, 0, 0};
int i;
do_cpuid( 0x80000000, regs );
if (regs[0] >= 0x80000004)
@ -2918,6 +2919,7 @@ static void get_processor_name( WCHAR *name )
do_cpuid( 0x80000004, regs );
regs_to_str( regs, 16, name + 32 );
}
for (i = strlenW(name) - 1; i >= 0 && name[i] == ' '; i--) name[i] = 0;
}
static UINT get_processor_currentclockspeed( UINT index )
{