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
95d72ae6
Commit
95d72ae6
authored
May 01, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
May 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Avoid a crash when MIME entries point to non-existing extensions.
parent
3f9c9eaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
classes.c
dlls/msi/classes.c
+4
-4
No files found.
dlls/msi/classes.c
View file @
95d72ae6
...
...
@@ -1452,14 +1452,14 @@ UINT ACTION_RegisterMIMEInfo(MSIPACKAGE *package)
LIST_FOR_EACH_ENTRY
(
mt
,
&
package
->
mimes
,
MSIMIME
,
entry
)
{
LPWSTR
extension
,
key
;
LPWSTR
extension
=
NULL
,
key
;
/*
* check if the MIME is to be installed. Either as requested by an
* extension or Class
*/
if
((
!
mt
->
Class
||
mt
->
Class
->
action
!=
INSTALLSTATE_LOCAL
)
&&
mt
->
Extension
->
action
!=
INSTALLSTATE_LOCAL
)
(
!
mt
->
Extension
||
mt
->
Extension
->
action
!=
INSTALLSTATE_LOCAL
)
)
{
TRACE
(
"MIME %s not scheduled to be installed
\n
"
,
debugstr_w
(
mt
->
ContentType
));
continue
;
...
...
@@ -1467,7 +1467,7 @@ UINT ACTION_RegisterMIMEInfo(MSIPACKAGE *package)
TRACE
(
"Registering MIME type %s
\n
"
,
debugstr_w
(
mt
->
ContentType
));
extension
=
msi_alloc
(
(
strlenW
(
mt
->
Extension
->
Extension
)
+
2
)
*
sizeof
(
WCHAR
)
);
if
(
mt
->
Extension
)
extension
=
msi_alloc
(
(
strlenW
(
mt
->
Extension
->
Extension
)
+
2
)
*
sizeof
(
WCHAR
)
);
key
=
msi_alloc
(
(
strlenW
(
mt
->
ContentType
)
+
strlenW
(
szMIMEDatabase
)
+
1
)
*
sizeof
(
WCHAR
)
);
if
(
extension
&&
key
)
...
...
@@ -1510,7 +1510,7 @@ UINT ACTION_UnregisterMIMEInfo( MSIPACKAGE *package )
LPWSTR
mime_key
;
if
((
!
mime
->
Class
||
mime
->
Class
->
action
!=
INSTALLSTATE_ABSENT
)
&&
mime
->
Extension
->
action
!=
INSTALLSTATE_ABSENT
)
(
!
mime
->
Extension
||
mime
->
Extension
->
action
!=
INSTALLSTATE_ABSENT
)
)
{
TRACE
(
"MIME %s not scheduled to be removed
\n
"
,
debugstr_w
(
mime
->
ContentType
));
continue
;
...
...
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