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
b585b243
Commit
b585b243
authored
Nov 23, 2009
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Nov 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Deal better with spaces in ASSOCSTR_COMMAND values.
parent
c89fb41f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
assoc.c
dlls/shell32/assoc.c
+13
-4
No files found.
dlls/shell32/assoc.c
View file @
b585b243
...
...
@@ -320,16 +320,25 @@ static HRESULT ASSOC_GetExecutable(IQueryAssociationsImpl *This,
{
pszStart
=
pszCommand
+
1
;
pszEnd
=
strchrW
(
pszStart
,
'"'
);
if
(
pszEnd
)
*
pszEnd
=
0
;
*
len
=
SearchPathW
(
NULL
,
pszStart
,
NULL
,
pathlen
,
path
,
NULL
);
}
else
{
pszStart
=
pszCommand
;
pszEnd
=
strchrW
(
pszStart
,
' '
);
for
(
pszEnd
=
pszStart
;
(
pszEnd
=
strchrW
(
pszEnd
,
' '
));
pszEnd
++
)
{
WCHAR
c
=
*
pszEnd
;
*
pszEnd
=
0
;
if
((
*
len
=
SearchPathW
(
NULL
,
pszStart
,
NULL
,
pathlen
,
path
,
NULL
)))
break
;
*
pszEnd
=
c
;
}
if
(
!
pszEnd
)
*
len
=
SearchPathW
(
NULL
,
pszStart
,
NULL
,
pathlen
,
path
,
NULL
);
}
if
(
pszEnd
)
*
pszEnd
=
0
;
*
len
=
SearchPathW
(
NULL
,
pszStart
,
NULL
,
pathlen
,
path
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
pszCommand
);
if
(
!*
len
)
return
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
);
...
...
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