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
7dffb518
Commit
7dffb518
authored
Nov 11, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Create the _Tables table when creating a database.
parent
ef1277d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
database.c
dlls/msi/database.c
+5
-1
db.c
dlls/msi/tests/db.c
+3
-13
No files found.
dlls/msi/database.c
View file @
7dffb518
...
...
@@ -82,6 +82,7 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb)
WCHAR
path
[
MAX_PATH
];
static
const
WCHAR
backslash
[]
=
{
'\\'
,
0
};
static
WCHAR
szTables
[]
=
{
'_'
,
'T'
,
'a'
,
'b'
,
'l'
,
'e'
,
's'
,
0
};
TRACE
(
"%s %s
\n
"
,
debugstr_w
(
szDBPath
),
debugstr_w
(
szPersist
)
);
...
...
@@ -114,7 +115,10 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb)
if
(
r
==
ERROR_SUCCESS
)
{
IStorage_SetClass
(
stg
,
&
CLSID_MsiDatabase
);
r
=
msi_init_string_table
(
stg
);
/* create the _Tables stream */
r
=
write_stream_data
(
stg
,
szTables
,
NULL
,
0
,
TRUE
);
if
(
!
FAILED
(
r
))
r
=
msi_init_string_table
(
stg
);
}
created
=
TRUE
;
}
...
...
dlls/msi/tests/db.c
View file @
7dffb518
...
...
@@ -4497,11 +4497,8 @@ void enum_stream_names(IStorage *stg)
if
(
FAILED
(
hr
)
||
!
count
)
break
;
todo_wine
{
ok
(
!
lstrcmpW
(
stat
.
pwcsName
,
database_table_data
[
n
].
name
),
"Expected table %d name to match
\n
"
,
n
);
}
ok
(
!
lstrcmpW
(
stat
.
pwcsName
,
database_table_data
[
n
].
name
),
"Expected table %d name to match
\n
"
,
n
);
stm
=
NULL
;
hr
=
IStorage_OpenStream
(
stg
,
stat
.
pwcsName
,
NULL
,
...
...
@@ -4514,15 +4511,11 @@ void enum_stream_names(IStorage *stg)
hr
=
IStream_Read
(
stm
,
data
,
sz
,
&
count
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
if
(
n
==
1
)
todo_wine
ok
(
count
==
database_table_data
[
n
].
size
,
"Expected %d, got %d
\n
"
,
database_table_data
[
n
].
size
,
count
);
if
(
!
database_table_data
[
n
].
size
)
{
if
(
n
==
1
)
todo_wine
ok
(
!
memcmp
(
data
,
check
,
MAX_PATH
),
"data should not be changed
\n
"
);
}
else
ok
(
!
memcmp
(
data
,
database_table_data
[
n
].
data
,
database_table_data
[
n
].
size
),
"Expected table %d data to match
\n
"
,
n
);
...
...
@@ -4531,10 +4524,7 @@ void enum_stream_names(IStorage *stg)
n
++
;
}
todo_wine
{
ok
(
n
==
3
,
"Expected 3, got %d
\n
"
,
n
);
}
ok
(
n
==
3
,
"Expected 3, got %d
\n
"
,
n
);
IEnumSTATSTG_Release
(
stgenum
);
}
...
...
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