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
ceea5bda
Commit
ceea5bda
authored
Sep 06, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Avoid infinite loop in _SHExpandEnvironmentStrings.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
54530bc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
shellpath.c
dlls/shell32/shellpath.c
+3
-10
No files found.
dlls/shell32/shellpath.c
View file @
ceea5bda
...
...
@@ -3855,22 +3855,15 @@ static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR szDest)
}
else
{
DWORD
ret
=
ExpandEnvironmentStringsW
(
sz
Src
,
szDest
,
MAX_PATH
);
DWORD
ret
=
ExpandEnvironmentStringsW
(
sz
Temp
,
szDest
,
MAX_PATH
);
if
(
ret
>
MAX_PATH
)
hr
=
E_NOT_SUFFICIENT_BUFFER
;
else
if
(
ret
==
0
)
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
else
hr
=
S_OK
;
}
if
(
SUCCEEDED
(
hr
)
&&
szDest
[
0
]
==
'%'
)
strcpyW
(
szTemp
,
szDest
);
else
{
/* terminate loop */
szTemp
[
0
]
=
'\0'
;
else
if
(
!
strcmpW
(
szTemp
,
szDest
))
break
;
/* nothing expanded */
}
if
(
SUCCEEDED
(
hr
))
strcpyW
(
szTemp
,
szDest
);
}
end:
if
(
key
)
...
...
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