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
f1c57f06
Commit
f1c57f06
authored
Sep 28, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Sep 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Avoid stack corruption with long name in SHELL_TryAppPathW().
parent
94e3e2d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
shlexec.c
dlls/shell32/shlexec.c
+8
-2
No files found.
dlls/shell32/shlexec.c
View file @
f1c57f06
...
...
@@ -428,8 +428,14 @@ static BOOL SHELL_TryAppPathW( LPCWSTR szName, LPWSTR lpResult, WCHAR **env)
BOOL
found
=
FALSE
;
if
(
env
)
*
env
=
NULL
;
lstrcpyW
(
buffer
,
L"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
App Paths
\\
"
);
lstrcatW
(
buffer
,
szName
);
wcscpy
(
buffer
,
L"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
App Paths
\\
"
);
if
(
wcslen
(
buffer
)
+
wcslen
(
szName
)
+
1
>
ARRAY_SIZE
(
buffer
))
{
WARN
(
"Name is too big.
\n
"
);
return
FALSE
;
}
wcscat
(
buffer
,
szName
);
res
=
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
buffer
,
0
,
KEY_READ
,
&
hkApp
);
if
(
res
)
goto
end
;
...
...
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