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
a620a84f
Commit
a620a84f
authored
Feb 22, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Free exception information.
Found by Valgrind.
parent
ba090ede
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
automation.c
dlls/msi/tests/automation.c
+6
-0
No files found.
dlls/msi/tests/automation.c
View file @
a620a84f
...
...
@@ -1808,6 +1808,7 @@ static void test_Session(IDispatch *pSession)
static
WCHAR
szEmpty
[]
=
{
0
};
static
WCHAR
szEquals
[]
=
{
'='
,
0
};
static
WCHAR
szPropertyName
[]
=
{
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'y'
,
','
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
WCHAR
szModeFlag
[]
=
{
'M'
,
'o'
,
'd'
,
'e'
,
','
,
'F'
,
'l'
,
'a'
,
'g'
,
0
};
WCHAR
stringw
[
MAX_PATH
];
CHAR
string
[
MAX_PATH
];
UINT
len
;
...
...
@@ -1880,14 +1881,19 @@ static void test_Session(IDispatch *pSession)
hr
=
Session_ModePut
(
pSession
,
MSIRUNMODE_REBOOTNOW
,
TRUE
);
todo_wine
ok
(
hr
==
S_OK
,
"Session_ModePut failed, hresult 0x%08x
\n
"
,
hr
);
if
(
hr
==
DISP_E_EXCEPTION
)
ok_exception
(
hr
,
szModeFlag
);
hr
=
Session_ModeGet
(
pSession
,
MSIRUNMODE_REBOOTNOW
,
&
bool
);
ok
(
hr
==
S_OK
,
"Session_ModeGet failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
bool
,
"Reboot now mode is %d, expected 1
\n
"
,
bool
);
hr
=
Session_ModePut
(
pSession
,
MSIRUNMODE_REBOOTNOW
,
FALSE
);
/* set it again so we don't reboot */
todo_wine
ok
(
hr
==
S_OK
,
"Session_ModePut failed, hresult 0x%08x
\n
"
,
hr
);
if
(
hr
==
DISP_E_EXCEPTION
)
ok_exception
(
hr
,
szModeFlag
);
hr
=
Session_ModePut
(
pSession
,
MSIRUNMODE_MAINTENANCE
,
TRUE
);
ok
(
hr
==
DISP_E_EXCEPTION
,
"Session_ModePut failed, hresult 0x%08x
\n
"
,
hr
);
ok_exception
(
hr
,
szModeFlag
);
/* Session::Database, get */
hr
=
Session_Database
(
pSession
,
&
pDatabase
);
...
...
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