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
d677bd7f
Commit
d677bd7f
authored
Apr 21, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Apr 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Return MSICONDITION_NONE in MsiDatabaseIsTablePersistent if the table doesn't exist.
parent
68401a15
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
msipriv.h
dlls/msi/msipriv.h
+1
-1
table.c
dlls/msi/table.c
+4
-1
db.c
dlls/msi/tests/db.c
+1
-1
No files found.
dlls/msi/msipriv.h
View file @
d677bd7f
...
...
@@ -563,7 +563,7 @@ extern const WCHAR *msi_string_lookup_id( string_table *st, UINT id );
extern
UINT
msi_string_get_codepage
(
string_table
*
st
);
extern
BOOL
TABLE_Exists
(
MSIDATABASE
*
db
,
LPWSTR
name
);
extern
BOOL
TABLE_Exists
(
MSIDATABASE
*
db
,
LP
C
WSTR
name
);
extern
MSICONDITION
MSI_DatabaseIsTablePersistent
(
MSIDATABASE
*
db
,
LPCWSTR
table
);
extern
UINT
read_raw_stream_data
(
MSIDATABASE
*
,
LPCWSTR
stname
,
...
...
dlls/msi/table.c
View file @
d677bd7f
...
...
@@ -1027,7 +1027,7 @@ static UINT get_tablecolumns( MSIDATABASE *db,
}
/* try to find the table name in the _Tables table */
BOOL
TABLE_Exists
(
MSIDATABASE
*
db
,
LPWSTR
name
)
BOOL
TABLE_Exists
(
MSIDATABASE
*
db
,
LP
C
WSTR
name
)
{
UINT
r
,
table_id
=
0
,
i
,
count
;
MSITABLE
*
table
=
NULL
;
...
...
@@ -1716,6 +1716,9 @@ MSICONDITION MSI_DatabaseIsTablePersistent( MSIDATABASE *db, LPCWSTR table )
if
(
!
table
)
return
MSICONDITION_ERROR
;
if
(
!
TABLE_Exists
(
db
,
table
))
return
MSICONDITION_NONE
;
return
MSICONDITION_FALSE
;
}
...
...
dlls/msi/tests/db.c
View file @
d677bd7f
...
...
@@ -2648,10 +2648,10 @@ static void test_temporary_table(void)
cond
=
MsiDatabaseIsTablePersistent
(
hdb
,
"_Columns"
);
ok
(
cond
==
MSICONDITION_NONE
,
"wrong return condition
\n
"
);
}
cond
=
MsiDatabaseIsTablePersistent
(
hdb
,
"_Streams"
);
ok
(
cond
==
MSICONDITION_NONE
,
"wrong return condition
\n
"
);
}
query
=
"CREATE TABLE `P` ( `B` SHORT NOT NULL, `C` CHAR(255) PRIMARY KEY `C`)"
;
r
=
run_query
(
hdb
,
0
,
query
);
...
...
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