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
60d92d42
Commit
60d92d42
authored
Sep 13, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix a couple of test cases for MsiDatabaseIsTablePersistent.
parent
ad045d6e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
4 deletions
+25
-4
msipriv.h
dlls/msi/msipriv.h
+1
-0
msiquery.c
dlls/msi/msiquery.c
+14
-2
table.c
dlls/msi/table.c
+8
-0
db.c
dlls/msi/tests/db.c
+2
-2
No files found.
dlls/msi/msipriv.h
View file @
60d92d42
...
...
@@ -338,6 +338,7 @@ extern UINT msi_string_get_codepage( string_table *st );
extern
BOOL
TABLE_Exists
(
MSIDATABASE
*
db
,
LPWSTR
name
);
extern
MSICONDITION
MSI_DatabaseIsTablePersistent
(
MSIDATABASE
*
db
,
LPCWSTR
table
);
extern
UINT
read_raw_stream_data
(
MSIDATABASE
*
,
LPCWSTR
stname
,
USHORT
**
pdata
,
UINT
*
psz
);
...
...
dlls/msi/msiquery.c
View file @
60d92d42
...
...
@@ -898,6 +898,18 @@ MSICONDITION WINAPI MsiDatabaseIsTablePersistentA(
MSICONDITION
WINAPI
MsiDatabaseIsTablePersistentW
(
MSIHANDLE
hDatabase
,
LPCWSTR
szTableName
)
{
FIXME
(
"%lx %s
\n
"
,
hDatabase
,
debugstr_w
(
szTableName
));
return
MSICONDITION_FALSE
;
MSIDATABASE
*
db
;
MSICONDITION
r
;
TRACE
(
"%lx %s
\n
"
,
hDatabase
,
debugstr_w
(
szTableName
));
db
=
msihandle2msiinfo
(
hDatabase
,
MSIHANDLETYPE_DATABASE
);
if
(
!
db
)
return
MSICONDITION_ERROR
;
r
=
MSI_DatabaseIsTablePersistent
(
db
,
szTableName
);
msiobj_release
(
&
db
->
hdr
);
return
r
;
}
dlls/msi/table.c
View file @
60d92d42
...
...
@@ -1643,6 +1643,14 @@ UINT MSI_CommitTables( MSIDATABASE *db )
return
ERROR_SUCCESS
;
}
MSICONDITION
MSI_DatabaseIsTablePersistent
(
MSIDATABASE
*
db
,
LPCWSTR
table
)
{
if
(
!
table
)
return
MSICONDITION_ERROR
;
return
MSICONDITION_FALSE
;
}
static
MSIRECORD
*
msi_get_transform_record
(
MSITABLEVIEW
*
tv
,
string_table
*
st
,
USHORT
*
rawdata
)
{
UINT
i
,
val
,
ofs
=
0
;
...
...
dlls/msi/tests/db.c
View file @
60d92d42
...
...
@@ -2170,15 +2170,15 @@ static void test_temporary_table(void)
DWORD
sz
;
cond
=
MsiDatabaseIsTablePersistent
(
0
,
NULL
);
todo_wine
ok
(
cond
==
MSICONDITION_ERROR
,
"wrong return condition
\n
"
);
ok
(
cond
==
MSICONDITION_ERROR
,
"wrong return condition
\n
"
);
hdb
=
create_db
();
ok
(
hdb
,
"failed to create db
\n
"
);
todo_wine
{
cond
=
MsiDatabaseIsTablePersistent
(
hdb
,
NULL
);
ok
(
cond
==
MSICONDITION_ERROR
,
"wrong return condition
\n
"
);
todo_wine
{
cond
=
MsiDatabaseIsTablePersistent
(
hdb
,
"_Tables"
);
ok
(
cond
==
MSICONDITION_NONE
,
"wrong return condition
\n
"
);
...
...
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