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
65c68efc
Commit
65c68efc
authored
Feb 18, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Implement MSIRUNMODE_MAINTENANCE and MSIRUNMODE_REBOOTATEND for MsiGetMode.
parent
a11882fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
install.c
dlls/msi/install.c
+11
-1
automation.c
dlls/msi/tests/automation.c
+2
-2
No files found.
dlls/msi/install.c
View file @
65c68efc
...
...
@@ -661,6 +661,8 @@ BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode)
MSIPACKAGE
*
package
;
BOOL
r
=
FALSE
;
TRACE
(
"%d %d
\n
"
,
hInstall
,
iRunMode
);
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
{
...
...
@@ -706,8 +708,16 @@ BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode)
r
=
package
->
commit_action_running
;
break
;
case
MSIRUNMODE_MAINTENANCE
:
r
=
msi_get_property_int
(
package
,
szInstalled
,
0
)
!=
0
;
break
;
case
MSIRUNMODE_REBOOTATEND
:
r
=
package
->
need_reboot
;
break
;
default:
FIXME
(
"
%d %d
\n
"
,
hInstall
,
iRunMode
);
FIXME
(
"
unimplemented run mode
\n
"
);
r
=
TRUE
;
}
...
...
dlls/msi/tests/automation.c
View file @
65c68efc
...
...
@@ -1863,11 +1863,11 @@ static void test_Session(IDispatch *pSession)
/* Session::Mode, get */
hr
=
Session_ModeGet
(
pSession
,
MSIRUNMODE_REBOOTATEND
,
&
bool
);
ok
(
hr
==
S_OK
,
"Session_ModeGet failed, hresult 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
!
bool
,
"Reboot at end session mode is %d
\n
"
,
bool
);
ok
(
!
bool
,
"Reboot at end session mode is %d
\n
"
,
bool
);
hr
=
Session_ModeGet
(
pSession
,
MSIRUNMODE_MAINTENANCE
,
&
bool
);
ok
(
hr
==
S_OK
,
"Session_ModeGet failed, hresult 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
!
bool
,
"Maintenance mode is %d
\n
"
,
bool
);
ok
(
!
bool
,
"Maintenance mode is %d
\n
"
,
bool
);
/* Session::Mode, put */
hr
=
Session_ModePut
(
pSession
,
MSIRUNMODE_REBOOTATEND
,
TRUE
);
...
...
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