Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
53041d8f
Commit
53041d8f
authored
Jun 12, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix compilation on msvc6.
parent
3c81969a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
msi.c
dlls/msi/tests/msi.c
+15
-9
No files found.
dlls/msi/tests/msi.c
View file @
53041d8f
...
...
@@ -27,6 +27,10 @@
typedef
INSTALLSTATE
(
WINAPI
*
fnMsiUseFeatureExA
)(
LPCSTR
,
LPCSTR
,
DWORD
,
DWORD
);
fnMsiUseFeatureExA
pMsiUseFeatureExA
;
typedef
UINT
(
WINAPI
*
fnMsiOpenPackageExA
)(
LPCSTR
,
DWORD
,
MSIHANDLE
*
);
fnMsiOpenPackageExA
pMsiOpenPackageExA
;
typedef
UINT
(
WINAPI
*
fnMsiOpenPackageExW
)(
LPCWSTR
,
DWORD
,
MSIHANDLE
*
);
fnMsiOpenPackageExW
pMsiOpenPackageExW
;
static
void
test_usefeature
(
void
)
{
...
...
@@ -41,29 +45,27 @@ static void test_usefeature(void)
r
=
MsiQueryFeatureState
(
"{9085040-6000-11d3-8cfe-0150048383c9}"
,
NULL
);
ok
(
r
==
INSTALLSTATE_INVALIDARG
,
"wrong return val
\n
"
);
r
=
MsiUseFeatureExA
(
NULL
,
NULL
,
0
,
0
);
r
=
p
MsiUseFeatureExA
(
NULL
,
NULL
,
0
,
0
);
ok
(
r
==
INSTALLSTATE_INVALIDARG
,
"wrong return val
\n
"
);
r
=
MsiUseFeatureExA
(
NULL
,
"WORDVIEWFiles"
,
-
2
,
1
);
r
=
pMsiUseFeatureExA
(
NULL
,
"WORDVIEWFiles"
,
-
2
,
1
);
ok
(
r
==
INSTALLSTATE_INVALIDARG
,
"wrong return val
\n
"
);
r
=
MsiUseFeatureExA
(
"{90850409-6000-11d3-8cfe-0150048383c9}"
,
r
=
p
MsiUseFeatureExA
(
"{90850409-6000-11d3-8cfe-0150048383c9}"
,
NULL
,
-
2
,
0
);
ok
(
r
==
INSTALLSTATE_INVALIDARG
,
"wrong return val
\n
"
);
r
=
MsiUseFeatureExA
(
"{9085040-6000-11d3-8cfe-0150048383c9}"
,
r
=
p
MsiUseFeatureExA
(
"{9085040-6000-11d3-8cfe-0150048383c9}"
,
"WORDVIEWFiles"
,
-
2
,
0
);
ok
(
r
==
INSTALLSTATE_INVALIDARG
,
"wrong return val
\n
"
);
r
=
MsiUseFeatureExA
(
"{0085040-6000-11d3-8cfe-0150048383c9}"
,
r
=
p
MsiUseFeatureExA
(
"{0085040-6000-11d3-8cfe-0150048383c9}"
,
"WORDVIEWFiles"
,
-
2
,
0
);
ok
(
r
==
INSTALLSTATE_INVALIDARG
,
"wrong return val
\n
"
);
r
=
MsiUseFeatureExA
(
"{90850409-6000-11d3-8cfe-0150048383c9}"
,
r
=
p
MsiUseFeatureExA
(
"{90850409-6000-11d3-8cfe-0150048383c9}"
,
"WORDVIEWFiles"
,
-
2
,
1
);
ok
(
r
==
INSTALLSTATE_INVALIDARG
,
"wrong return val
\n
"
);
}
static
void
test_null
(
void
)
...
...
@@ -71,7 +73,7 @@ static void test_null(void)
MSIHANDLE
hpkg
;
UINT
r
;
r
=
MsiOpenPackageExW
(
NULL
,
0
,
&
hpkg
);
r
=
p
MsiOpenPackageExW
(
NULL
,
0
,
&
hpkg
);
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"wrong error
\n
"
);
r
=
MsiQueryProductStateW
(
NULL
);
...
...
@@ -86,6 +88,10 @@ START_TEST(msi)
HMODULE
hmod
=
GetModuleHandle
(
"msi.dll"
);
pMsiUseFeatureExA
=
(
fnMsiUseFeatureExA
)
GetProcAddress
(
hmod
,
"MsiUseFeatureExA"
);
pMsiOpenPackageExA
=
(
fnMsiOpenPackageExA
)
GetProcAddress
(
hmod
,
"MsiOpenPackageExA"
);
pMsiOpenPackageExW
=
(
fnMsiOpenPackageExW
)
GetProcAddress
(
hmod
,
"MsiOpenPackageExW"
);
test_usefeature
();
test_null
();
...
...
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