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
7d3e6643
Commit
7d3e6643
authored
Dec 03, 2009
by
James Hawkins
Committed by
Alexandre Julliard
Dec 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: MsiSetMode returns a UINT system error code, not a BOOL.
parent
b967fde0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
14 deletions
+5
-14
install.c
dlls/msi/install.c
+2
-11
automation.c
dlls/msi/tests/automation.c
+2
-2
msiquery.h
include/msiquery.h
+1
-1
No files found.
dlls/msi/install.c
View file @
7d3e6643
...
...
@@ -717,19 +717,10 @@ BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode)
/***********************************************************************
* MsiSetMode (MSI.@)
*/
BOOL
WINAPI
MsiSetMode
(
MSIHANDLE
hInstall
,
MSIRUNMODE
iRunMode
,
BOOL
fState
)
UINT
WINAPI
MsiSetMode
(
MSIHANDLE
hInstall
,
MSIRUNMODE
iRunMode
,
BOOL
fState
)
{
switch
(
iRunMode
)
{
case
MSIRUNMODE_RESERVED11
:
case
MSIRUNMODE_WINDOWS9X
:
case
MSIRUNMODE_RESERVED14
:
case
MSIRUNMODE_RESERVED15
:
return
FALSE
;
default:
FIXME
(
"%d %d %d
\n
"
,
hInstall
,
iRunMode
,
fState
);
}
return
TRUE
;
return
ERROR_SUCCESS
;
}
/***********************************************************************
...
...
dlls/msi/tests/automation.c
View file @
7d3e6643
...
...
@@ -1713,12 +1713,12 @@ static void test_Session(IDispatch *pSession)
/* Session::Mode, put */
hr
=
Session_ModePut
(
pSession
,
MSIRUNMODE_REBOOTATEND
,
TRUE
);
todo_wine
ok
(
hr
==
S_OK
,
"Session_ModePut failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Session_ModePut failed, hresult 0x%08x
\n
"
,
hr
);
hr
=
Session_ModeGet
(
pSession
,
MSIRUNMODE_REBOOTATEND
,
&
bool
);
ok
(
hr
==
S_OK
,
"Session_ModeGet failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
bool
,
"Reboot at end session mode is %d, expected 1
\n
"
,
bool
);
hr
=
Session_ModePut
(
pSession
,
MSIRUNMODE_REBOOTATEND
,
FALSE
);
/* set it again so we don't reboot */
todo_wine
ok
(
hr
==
S_OK
,
"Session_ModePut failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Session_ModePut failed, hresult 0x%08x
\n
"
,
hr
);
/* Session::Database, get */
hr
=
Session_Database
(
pSession
,
&
pDatabase
);
...
...
include/msiquery.h
View file @
7d3e6643
...
...
@@ -301,7 +301,7 @@ UINT WINAPI MsiSummaryInfoGetPropertyCount(MSIHANDLE,PUINT);
UINT
WINAPI
MsiEnableUIPreview
(
MSIHANDLE
,
MSIHANDLE
*
);
BOOL
WINAPI
MsiGetMode
(
MSIHANDLE
,
MSIRUNMODE
);
BOOL
WINAPI
MsiSetMode
(
MSIHANDLE
,
MSIRUNMODE
,
BOOL
);
UINT
WINAPI
MsiSetMode
(
MSIHANDLE
,
MSIRUNMODE
,
BOOL
);
UINT
WINAPI
MsiViewModify
(
MSIHANDLE
,
MSIMODIFY
,
MSIHANDLE
);
...
...
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