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
1257db21
Commit
1257db21
authored
Jul 30, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix integer conversion in get_table_value_from_record.
parent
7dfdcf30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
table.c
dlls/msi/table.c
+11
-5
No files found.
dlls/msi/table.c
View file @
1257db21
...
...
@@ -1259,6 +1259,7 @@ static UINT get_table_value_from_record( MSITABLEVIEW *tv, MSIRECORD *rec, UINT
{
MSICOLUMNINFO
columninfo
;
UINT
r
;
int
ival
;
if
(
(
iField
<=
0
)
||
(
iField
>
tv
->
num_cols
)
||
...
...
@@ -1285,16 +1286,21 @@ static UINT get_table_value_from_record( MSITABLEVIEW *tv, MSIRECORD *rec, UINT
}
else
if
(
bytes_per_column
(
tv
->
db
,
&
columninfo
,
LONG_STR_BYTES
)
==
2
)
{
*
pvalue
=
0x8000
+
MSI_RecordGetInteger
(
rec
,
iField
);
if
(
*
pvalue
&
0xffff0000
)
ival
=
MSI_RecordGetInteger
(
rec
,
iField
);
if
(
ival
==
0x80000000
)
*
pvalue
=
0x8000
;
else
{
ERR
(
"field %u value %d out of range
\n
"
,
iField
,
*
pvalue
-
0x8000
);
return
ERROR_FUNCTION_FAILED
;
*
pvalue
=
0x8000
+
MSI_RecordGetInteger
(
rec
,
iField
);
if
(
*
pvalue
&
0xffff0000
)
{
ERR
(
"field %u value %d out of range
\n
"
,
iField
,
*
pvalue
-
0x8000
);
return
ERROR_FUNCTION_FAILED
;
}
}
}
else
{
INT
ival
=
MSI_RecordGetInteger
(
rec
,
iField
);
ival
=
MSI_RecordGetInteger
(
rec
,
iField
);
*
pvalue
=
ival
^
0x80000000
;
}
...
...
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