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
298699e2
Commit
298699e2
authored
Jun 07, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jun 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use fetch_int to reduce code duplication and access to table data.
parent
7318ae24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
26 deletions
+3
-26
table.c
dlls/msi/table.c
+3
-26
No files found.
dlls/msi/table.c
View file @
298699e2
...
@@ -1565,33 +1565,10 @@ static UINT TABLE_find_matching_rows( struct tagMSIVIEW *view, UINT col,
...
@@ -1565,33 +1565,10 @@ static UINT TABLE_find_matching_rows( struct tagMSIVIEW *view, UINT col,
for
(
i
=
0
;
i
<
num_rows
;
i
++
,
new_entry
++
)
for
(
i
=
0
;
i
<
num_rows
;
i
++
,
new_entry
++
)
{
{
UINT
row_value
,
n
;
UINT
row_value
;
UINT
offset
;
USHORT
**
data
;
if
(
view
->
ops
->
fetch_int
(
view
,
i
,
col
,
&
row_value
)
!=
ERROR_SUCCESS
)
UINT
row
=
i
;
if
(
row
>=
tv
->
table
->
row_count
)
{
row
-=
tv
->
table
->
row_count
;
data
=
tv
->
table
->
nonpersistent_data
;
}
else
data
=
tv
->
table
->
data
;
n
=
bytes_per_column
(
&
tv
->
columns
[
col
-
1
]
);
switch
(
n
)
{
case
4
:
offset
=
tv
->
columns
[
col
-
1
].
offset
/
2
;
row_value
=
data
[
row
][
offset
]
+
(
data
[
row
][
offset
+
1
]
<<
16
);
break
;
case
2
:
offset
=
tv
->
columns
[
col
-
1
].
offset
/
2
;
row_value
=
data
[
row
][
offset
];
break
;
default:
ERR
(
"oops! what is %d bytes per column?
\n
"
,
n
);
continue
;
continue
;
}
new_entry
->
next
=
NULL
;
new_entry
->
next
=
NULL
;
new_entry
->
value
=
row_value
;
new_entry
->
value
=
row_value
;
...
...
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