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
1f737c03
Commit
1f737c03
authored
Oct 17, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Stream fields shouldn't be treated as strings.
parent
4047cc70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
table.c
dlls/msi/table.c
+3
-1
db.c
dlls/msi/tests/db.c
+14
-0
No files found.
dlls/msi/table.c
View file @
1f737c03
...
@@ -1293,7 +1293,9 @@ static UINT table_validate_new( MSITABLEVIEW *tv, MSIRECORD *rec )
...
@@ -1293,7 +1293,9 @@ static UINT table_validate_new( MSITABLEVIEW *tv, MSIRECORD *rec )
if
(
tv
->
columns
[
i
].
type
&
MSITYPE_NULLABLE
)
if
(
tv
->
columns
[
i
].
type
&
MSITYPE_NULLABLE
)
continue
;
continue
;
if
(
tv
->
columns
[
i
].
type
&
MSITYPE_STRING
)
if
(
MSITYPE_IS_BINARY
(
tv
->
columns
[
i
].
type
)
)
TRACE
(
"skipping binary column
\n
"
);
else
if
(
tv
->
columns
[
i
].
type
&
MSITYPE_STRING
)
{
{
LPCWSTR
str
;
LPCWSTR
str
;
...
...
dlls/msi/tests/db.c
View file @
1f737c03
...
@@ -1906,6 +1906,20 @@ static void test_try_transform(void)
...
@@ -1906,6 +1906,20 @@ static void test_try_transform(void)
r
=
run_query
(
hdb
,
0
,
query
);
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to add table
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to add table
\n
"
);
hrec
=
MsiCreateRecord
(
2
);
r
=
MsiRecordSetInteger
(
hrec
,
1
,
2
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to set integer
\n
"
);
write_file
(
"testdata.bin"
,
"lamyon"
,
6
);
r
=
MsiRecordSetStream
(
hrec
,
2
,
"testdata.bin"
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to set stream
\n
"
);
query
=
"INSERT INTO `BINARY` ( `ID`, `BLOB` ) VALUES ( ?, ? )"
;
r
=
run_query
(
hdb
,
hrec
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to add row with blob
\n
"
);
MsiCloseHandle
(
hrec
);
r
=
MsiDatabaseCommit
(
hdb
);
r
=
MsiDatabaseCommit
(
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to commit database
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to commit database
\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