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
e16f1877
Commit
e16f1877
authored
May 20, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
May 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Test the reference count on the installer object retrieved from a session object.
parent
2e24d34b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
automation.c
dlls/msi/tests/automation.c
+9
-0
No files found.
dlls/msi/tests/automation.c
View file @
e16f1877
...
@@ -1815,6 +1815,7 @@ static void test_Session(IDispatch *pSession)
...
@@ -1815,6 +1815,7 @@ static void test_Session(IDispatch *pSession)
BOOL
bool
;
BOOL
bool
;
int
myint
;
int
myint
;
IDispatch
*
pDatabase
=
NULL
,
*
pInst
=
NULL
,
*
record
=
NULL
;
IDispatch
*
pDatabase
=
NULL
,
*
pInst
=
NULL
,
*
record
=
NULL
;
ULONG
refs_before
,
refs_after
;
HRESULT
hr
;
HRESULT
hr
;
/* Session::Installer */
/* Session::Installer */
...
@@ -1822,6 +1823,14 @@ static void test_Session(IDispatch *pSession)
...
@@ -1822,6 +1823,14 @@ static void test_Session(IDispatch *pSession)
ok
(
hr
==
S_OK
,
"Session_Installer failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Session_Installer failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
pInst
!=
NULL
,
"Session_Installer returned NULL IDispatch pointer
\n
"
);
ok
(
pInst
!=
NULL
,
"Session_Installer returned NULL IDispatch pointer
\n
"
);
ok
(
pInst
==
pInstaller
,
"Session_Installer does not match Installer instance from CoCreateInstance
\n
"
);
ok
(
pInst
==
pInstaller
,
"Session_Installer does not match Installer instance from CoCreateInstance
\n
"
);
refs_before
=
IDispatch_AddRef
(
pInst
);
hr
=
Session_Installer
(
pSession
,
&
pInst
);
ok
(
hr
==
S_OK
,
"Session_Installer failed, hresult 0x%08x
\n
"
,
hr
);
ok
(
pInst
!=
NULL
,
"Session_Installer returned NULL IDispatch pointer
\n
"
);
ok
(
pInst
==
pInstaller
,
"Session_Installer does not match Installer instance from CoCreateInstance
\n
"
);
refs_after
=
IDispatch_Release
(
pInst
);
ok
(
refs_before
==
refs_after
,
"got %u and %u
\n
"
,
refs_before
,
refs_after
);
/* Session::Property, get */
/* Session::Property, get */
memset
(
stringw
,
0
,
sizeof
(
stringw
));
memset
(
stringw
,
0
,
sizeof
(
stringw
));
...
...
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