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
28ecbec8
Commit
28ecbec8
authored
Feb 27, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Get rid of the InstallMe field in MSIMIME.
parent
f0d663fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
30 deletions
+4
-30
classes.c
dlls/msi/classes.c
+4
-28
msipriv.h
dlls/msi/msipriv.h
+0
-2
No files found.
dlls/msi/classes.c
View file @
28ecbec8
...
...
@@ -737,20 +737,6 @@ static void mark_progid_for_uninstall( MSIPACKAGE *package, MSIPROGID *progid )
}
}
static
void
mark_mime_for_install
(
MSIMIME
*
mime
)
{
if
(
!
mime
)
return
;
mime
->
InstallMe
=
TRUE
;
}
static
void
mark_mime_for_uninstall
(
MSIMIME
*
mime
)
{
if
(
!
mime
)
return
;
mime
->
InstallMe
=
FALSE
;
}
static
UINT
register_appid
(
const
MSIAPPID
*
appid
,
LPCWSTR
app
)
{
static
const
WCHAR
szRemoteServerName
[]
=
...
...
@@ -1309,8 +1295,6 @@ UINT ACTION_RegisterExtensionInfo(MSIPACKAGE *package)
if
(
ext
->
ProgID
&&
!
list_empty
(
&
ext
->
verbs
)
)
mark_progid_for_install
(
package
,
ext
->
ProgID
);
mark_mime_for_install
(
ext
->
Mime
);
extension
=
msi_alloc
(
(
strlenW
(
ext
->
Extension
)
+
2
)
*
sizeof
(
WCHAR
)
);
if
(
extension
)
{
...
...
@@ -1412,8 +1396,6 @@ UINT ACTION_UnregisterExtensionInfo( MSIPACKAGE *package )
if
(
ext
->
ProgID
&&
!
list_empty
(
&
ext
->
verbs
))
mark_progid_for_uninstall
(
package
,
ext
->
ProgID
);
mark_mime_for_uninstall
(
ext
->
Mime
);
extension
=
msi_alloc
(
(
strlenW
(
ext
->
Extension
)
+
2
)
*
sizeof
(
WCHAR
)
);
if
(
extension
)
{
...
...
@@ -1476,11 +1458,8 @@ UINT ACTION_RegisterMIMEInfo(MSIPACKAGE *package)
* check if the MIME is to be installed. Either as requested by an
* extension or Class
*/
mt
->
InstallMe
=
(
mt
->
InstallMe
||
(
mt
->
Class
&&
mt
->
Class
->
action
==
INSTALLSTATE_LOCAL
)
||
(
mt
->
Extension
&&
mt
->
Extension
->
action
==
INSTALLSTATE_LOCAL
));
if
(
!
mt
->
InstallMe
)
if
((
!
mt
->
Class
||
mt
->
Class
->
action
!=
INSTALLSTATE_LOCAL
)
&&
mt
->
Extension
->
action
!=
INSTALLSTATE_LOCAL
)
{
TRACE
(
"MIME %s not scheduled to be installed
\n
"
,
debugstr_w
(
mt
->
ContentType
));
continue
;
...
...
@@ -1530,11 +1509,8 @@ UINT ACTION_UnregisterMIMEInfo( MSIPACKAGE *package )
LONG
res
;
LPWSTR
mime_key
;
mime
->
InstallMe
=
(
mime
->
InstallMe
||
(
mime
->
Class
&&
mime
->
Class
->
action
==
INSTALLSTATE_LOCAL
)
||
(
mime
->
Extension
&&
mime
->
Extension
->
action
==
INSTALLSTATE_LOCAL
));
if
(
mime
->
InstallMe
)
if
((
!
mime
->
Class
||
mime
->
Class
->
action
!=
INSTALLSTATE_ABSENT
)
&&
mime
->
Extension
->
action
!=
INSTALLSTATE_ABSENT
)
{
TRACE
(
"MIME %s not scheduled to be removed
\n
"
,
debugstr_w
(
mime
->
ContentType
));
continue
;
...
...
dlls/msi/msipriv.h
View file @
28ecbec8
...
...
@@ -664,8 +664,6 @@ struct tagMSIMIME
LPWSTR
suffix
;
LPWSTR
clsid
;
MSICLASS
*
Class
;
/* not in the table, set during installation */
BOOL
InstallMe
;
};
enum
SCRIPTS
...
...
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