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
37c5e040
Commit
37c5e040
authored
Mar 01, 2009
by
James Hawkins
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: The _Streams and _Storages table are special and always exist.
parent
c9b3bc11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
table.c
dlls/msi/table.c
+5
-3
db.c
dlls/msi/tests/db.c
+2
-2
No files found.
dlls/msi/table.c
View file @
37c5e040
...
...
@@ -1060,9 +1060,11 @@ BOOL TABLE_Exists( MSIDATABASE *db, LPCWSTR name )
UINT
r
,
table_id
=
0
,
i
,
count
;
MSITABLE
*
table
=
NULL
;
if
(
!
lstrcmpW
(
name
,
szTables
)
)
return
TRUE
;
if
(
!
lstrcmpW
(
name
,
szColumns
)
)
static
const
WCHAR
szStreams
[]
=
{
'_'
,
'S'
,
't'
,
'r'
,
'e'
,
'a'
,
'm'
,
's'
,
0
};
static
const
WCHAR
szStorages
[]
=
{
'_'
,
'S'
,
't'
,
'o'
,
'r'
,
'a'
,
'g'
,
'e'
,
's'
,
0
};
if
(
!
lstrcmpW
(
name
,
szTables
)
||
!
lstrcmpW
(
name
,
szColumns
)
||
!
lstrcmpW
(
name
,
szStreams
)
||
!
lstrcmpW
(
name
,
szStorages
)
)
return
TRUE
;
r
=
msi_string2idW
(
db
->
strings
,
name
,
&
table_id
);
...
...
dlls/msi/tests/db.c
View file @
37c5e040
...
...
@@ -3965,12 +3965,12 @@ static void test_special_tables(void)
query
=
"CREATE TABLE `_Storages` ( "
"`foo` INT NOT NULL, `bar` INT LOCALIZABLE PRIMARY KEY `foo`)"
;
r
=
run_query
(
hdb
,
0
,
query
);
todo_wine
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"created _Streams table
\n
"
);
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"created _Streams table
\n
"
);
query
=
"CREATE TABLE `_Streams` ( "
"`foo` INT NOT NULL, `bar` INT LOCALIZABLE PRIMARY KEY `foo`)"
;
r
=
run_query
(
hdb
,
0
,
query
);
todo_wine
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"created _Streams table
\n
"
);
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"created _Streams table
\n
"
);
query
=
"CREATE TABLE `_Tables` ( "
"`foo` INT NOT NULL, `bar` INT LOCALIZABLE PRIMARY KEY `foo`)"
;
...
...
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