Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
eb8cac0f
Commit
eb8cac0f
authored
Oct 30, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix string size condition check (Coverity).
The issue was introduced by
68fd74e7
.
parent
bf58285a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
shlexec.c
dlls/shell32/shlexec.c
+2
-2
No files found.
dlls/shell32/shlexec.c
View file @
eb8cac0f
...
...
@@ -164,8 +164,8 @@ static BOOL SHELL_ArgifyW(WCHAR* out, int len, const WCHAR* fmt, const WCHAR* lp
case
'l'
:
case
'L'
:
if
(
lpFile
)
{
if
((
size
=
SearchPathW
(
NULL
,
lpFile
,
L".exe"
,
ARRAY_SIZE
(
xlpFile
),
xlpFile
,
NULL
)
&&
size
<=
ARRAY_SIZE
(
xlpFile
)
))
size
=
SearchPathW
(
NULL
,
lpFile
,
L".exe"
,
ARRAY_SIZE
(
xlpFile
),
xlpFile
,
NULL
);
if
(
size
&&
size
<=
ARRAY_SIZE
(
xlpFile
))
cmd
=
xlpFile
;
else
cmd
=
lpFile
;
...
...
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