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
0f361b80
Commit
0f361b80
authored
Dec 09, 2008
by
Austin English
Committed by
Alexandre Julliard
Dec 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Fix a compiler warning.
parent
dfb8b664
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
msstyles.c
dlls/uxtheme/msstyles.c
+15
-6
No files found.
dlls/uxtheme/msstyles.c
View file @
0f361b80
...
...
@@ -685,9 +685,9 @@ static BOOL parse_handle_color_property (struct PARSECOLORSTATE* state,
{
int
r
,
g
,
b
;
LPCWSTR
lpValueEnd
=
lpValue
+
dwValueLen
;
MSSTYLES_GetNextInteger
(
lpValue
,
lpValueEnd
,
&
lpValue
,
&
r
);
MSSTYLES_GetNextInteger
(
lpValue
,
lpValueEnd
,
&
lpValue
,
&
g
)
;
if
(
MSSTYLES_GetNextInteger
(
lpValue
,
lpValueEnd
,
&
lpValue
,
&
b
))
{
if
(
MSSTYLES_GetNextInteger
(
lpValue
,
lpValueEnd
,
&
lpValue
,
&
r
)
&&
MSSTYLES_GetNextInteger
(
lpValue
,
lpValueEnd
,
&
lpValue
,
&
g
)
&&
MSSTYLES_GetNextInteger
(
lpValue
,
lpValueEnd
,
&
lpValue
,
&
b
))
{
state
->
colorElements
[
state
->
colorCount
]
=
iPropertyId
-
TMT_FIRSTCOLOR
;
state
->
colorRgb
[
state
->
colorCount
++
]
=
RGB
(
r
,
g
,
b
);
switch
(
iPropertyId
)
...
...
@@ -1210,8 +1210,14 @@ HRESULT MSSTYLES_GetPropertyColor(PTHEME_PROPERTY tp, COLORREF *pColor)
lpCur
=
tp
->
lpValue
;
lpEnd
=
tp
->
lpValue
+
tp
->
dwValueLen
;
MSSTYLES_GetNextInteger
(
lpCur
,
lpEnd
,
&
lpCur
,
&
red
);
MSSTYLES_GetNextInteger
(
lpCur
,
lpEnd
,
&
lpCur
,
&
green
);
if
(
!
MSSTYLES_GetNextInteger
(
lpCur
,
lpEnd
,
&
lpCur
,
&
red
))
{
TRACE
(
"Could not parse color property
\n
"
);
return
E_PROP_ID_UNSUPPORTED
;
}
if
(
!
MSSTYLES_GetNextInteger
(
lpCur
,
lpEnd
,
&
lpCur
,
&
green
))
{
TRACE
(
"Could not parse color property
\n
"
);
return
E_PROP_ID_UNSUPPORTED
;
}
if
(
!
MSSTYLES_GetNextInteger
(
lpCur
,
lpEnd
,
&
lpCur
,
&
blue
))
{
TRACE
(
"Could not parse color property
\n
"
);
return
E_PROP_ID_UNSUPPORTED
;
...
...
@@ -1316,7 +1322,10 @@ HRESULT MSSTYLES_GetPropertyPosition(PTHEME_PROPERTY tp, POINT *pPoint)
LPCWSTR
lpCur
=
tp
->
lpValue
;
LPCWSTR
lpEnd
=
tp
->
lpValue
+
tp
->
dwValueLen
;
MSSTYLES_GetNextInteger
(
lpCur
,
lpEnd
,
&
lpCur
,
&
x
);
if
(
!
MSSTYLES_GetNextInteger
(
lpCur
,
lpEnd
,
&
lpCur
,
&
x
))
{
TRACE
(
"Could not parse position property
\n
"
);
return
E_PROP_ID_UNSUPPORTED
;
}
if
(
!
MSSTYLES_GetNextInteger
(
lpCur
,
lpEnd
,
&
lpCur
,
&
y
))
{
TRACE
(
"Could not parse position property
\n
"
);
return
E_PROP_ID_UNSUPPORTED
;
...
...
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