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
bfdda1c3
Commit
bfdda1c3
authored
May 24, 2023
by
Connor McAdams
Committed by
Alexandre Julliard
May 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uiautomationcore: Fix maximum ID comparison for uia_{prop,pattern,control}_info_from_id().
Signed-off-by:
Connor McAdams
<
cmcadams@codeweavers.com
>
parent
0e90213e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
uia_ids.c
dlls/uiautomationcore/uia_ids.c
+3
-3
No files found.
dlls/uiautomationcore/uia_ids.c
View file @
bfdda1c3
...
...
@@ -331,7 +331,7 @@ static const struct uia_prop_info *uia_prop_info_from_guid(const GUID *guid)
const
struct
uia_prop_info
*
uia_prop_info_from_id
(
PROPERTYID
prop_id
)
{
if
((
prop_id
<
PROP_ID_MIN
)
||
(
prop_id
>
PROP_ID_MAX
))
if
((
prop_id
<
PROP_ID_MIN
)
||
(
prop_id
>
=
PROP_ID_MAX
))
return
NULL
;
return
&
default_uia_properties
[
prop_id_idx
[
prop_id
-
PROP_ID_MIN
]];
...
...
@@ -520,7 +520,7 @@ static const struct uia_pattern_info *uia_pattern_info_from_guid(const GUID *gui
const
struct
uia_pattern_info
*
uia_pattern_info_from_id
(
PATTERNID
pattern_id
)
{
if
((
pattern_id
<
PATTERN_ID_MIN
)
||
(
pattern_id
>
PATTERN_ID_MAX
))
if
((
pattern_id
<
PATTERN_ID_MIN
)
||
(
pattern_id
>
=
PATTERN_ID_MAX
))
return
NULL
;
return
&
default_uia_patterns
[
pattern_id_idx
[
pattern_id
-
PATTERN_ID_MIN
]];
...
...
@@ -596,7 +596,7 @@ static const struct uia_control_type_info *uia_control_type_info_from_guid(const
const
struct
uia_control_type_info
*
uia_control_type_info_from_id
(
CONTROLTYPEID
control_type_id
)
{
if
((
control_type_id
<
CONTROL_TYPE_ID_MIN
)
||
(
control_type_id
>
CONTROL_TYPE_ID_MAX
))
if
((
control_type_id
<
CONTROL_TYPE_ID_MIN
)
||
(
control_type_id
>
=
CONTROL_TYPE_ID_MAX
))
return
NULL
;
return
&
default_uia_control_types
[
control_type_id_idx
[
control_type_id
-
CONTROL_TYPE_ID_MIN
]];
...
...
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