Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d1f70b17
Commit
d1f70b17
authored
Jan 25, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Strip trailing spaces from processor name.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
48554a26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
builtin.c
dlls/wbemprox/builtin.c
+2
-0
No files found.
dlls/wbemprox/builtin.c
View file @
d1f70b17
...
@@ -2907,6 +2907,7 @@ static void get_processor_manufacturer( WCHAR *manufacturer )
...
@@ -2907,6 +2907,7 @@ static void get_processor_manufacturer( WCHAR *manufacturer )
static
void
get_processor_name
(
WCHAR
*
name
)
static
void
get_processor_name
(
WCHAR
*
name
)
{
{
unsigned
int
regs
[
4
]
=
{
0
,
0
,
0
,
0
};
unsigned
int
regs
[
4
]
=
{
0
,
0
,
0
,
0
};
int
i
;
do_cpuid
(
0x80000000
,
regs
);
do_cpuid
(
0x80000000
,
regs
);
if
(
regs
[
0
]
>=
0x80000004
)
if
(
regs
[
0
]
>=
0x80000004
)
...
@@ -2918,6 +2919,7 @@ static void get_processor_name( WCHAR *name )
...
@@ -2918,6 +2919,7 @@ static void get_processor_name( WCHAR *name )
do_cpuid
(
0x80000004
,
regs
);
do_cpuid
(
0x80000004
,
regs
);
regs_to_str
(
regs
,
16
,
name
+
32
);
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
)
static
UINT
get_processor_currentclockspeed
(
UINT
index
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment