Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9187951a
Commit
9187951a
authored
Oct 12, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Handle the sign properly when converting integer data.
parent
1b256f2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
table.c
dlls/msi/table.c
+6
-0
db.c
dlls/msi/tests/db.c
+2
-2
No files found.
dlls/msi/table.c
View file @
9187951a
...
...
@@ -1762,7 +1762,13 @@ static UINT* msi_record_to_row( MSITABLEVIEW *tv, MSIRECORD *rec )
}
}
else
{
data
[
i
]
=
MSI_RecordGetInteger
(
rec
,
i
+
1
);
if
((
tv
->
columns
[
i
].
type
&
0xff
)
==
2
)
data
[
i
]
+=
0x8000
;
else
data
[
i
]
+=
0x80000000
;
}
}
return
data
;
}
...
...
dlls/msi/tests/db.c
View file @
9187951a
...
...
@@ -1913,7 +1913,7 @@ static void test_try_transform(void)
hrec
=
0
;
query
=
"select `NOO`,`OOO` from `MOO` where `NOO` = 1 AND `OOO` = 'c'"
;
r
=
do_query
(
hdb
,
query
,
&
hrec
);
todo_wine
ok
(
r
==
ERROR_SUCCESS
,
"select query failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"select query failed
\n
"
);
MsiCloseHandle
(
hrec
);
/* check unchanged value */
...
...
@@ -1927,7 +1927,7 @@ static void test_try_transform(void)
hrec
=
0
;
query
=
"select * from `MOO` where `NOO` = 3"
;
r
=
do_query
(
hdb
,
query
,
&
hrec
);
todo_wine
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"select query failed
\n
"
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"select query failed
\n
"
);
if
(
hrec
)
MsiCloseHandle
(
hrec
);
MsiCloseHandle
(
hdb
);
...
...
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