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
65d12c34
Commit
65d12c34
authored
Jul 27, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix the value of LONG integers in records (suggested by James Hawkins).
parent
e12f2b36
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
table.c
dlls/msi/table.c
+2
-0
db.c
dlls/msi/tests/db.c
+8
-0
where.c
dlls/msi/where.c
+1
-1
No files found.
dlls/msi/table.c
View file @
65d12c34
...
@@ -1308,6 +1308,8 @@ static UINT msi_table_modify_row( MSITABLEVIEW *tv, MSIRECORD *rec,
...
@@ -1308,6 +1308,8 @@ static UINT msi_table_modify_row( MSITABLEVIEW *tv, MSIRECORD *rec,
val
=
MSI_RecordGetInteger
(
rec
,
i
+
1
);
val
=
MSI_RecordGetInteger
(
rec
,
i
+
1
);
if
(
2
==
bytes_per_column
(
&
tv
->
columns
[
i
]
)
)
if
(
2
==
bytes_per_column
(
&
tv
->
columns
[
i
]
)
)
val
^=
0x8000
;
val
^=
0x8000
;
else
val
^=
0x80000000
;
}
}
r
=
TABLE_set_int
(
&
tv
->
view
,
row
,
i
+
1
,
val
);
r
=
TABLE_set_int
(
&
tv
->
view
,
row
,
i
+
1
,
val
);
if
(
r
)
if
(
r
)
...
...
dlls/msi/tests/db.c
View file @
65d12c34
...
@@ -1026,12 +1026,20 @@ static void test_where(void)
...
@@ -1026,12 +1026,20 @@ static void test_where(void)
r
=
do_query
(
hdb
,
query
,
&
rec
);
r
=
do_query
(
hdb
,
query
,
&
rec
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiViewFetch failed: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiViewFetch failed: %d
\n
"
,
r
);
ok
(
check_record
(
rec
,
4
,
"zero.cab"
),
"wrong cabinet
\n
"
);
ok
(
check_record
(
rec
,
4
,
"zero.cab"
),
"wrong cabinet
\n
"
);
MsiCloseHandle
(
rec
);
query
=
"SELECT * FROM `Media` WHERE `LastSequence` >= 1"
;
query
=
"SELECT * FROM `Media` WHERE `LastSequence` >= 1"
;
r
=
do_query
(
hdb
,
query
,
&
rec
);
r
=
do_query
(
hdb
,
query
,
&
rec
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiViewFetch failed: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiViewFetch failed: %d
\n
"
,
r
);
ok
(
check_record
(
rec
,
4
,
"one.cab"
),
"wrong cabinet
\n
"
);
ok
(
check_record
(
rec
,
4
,
"one.cab"
),
"wrong cabinet
\n
"
);
r
=
MsiRecordGetInteger
(
rec
,
1
);
ok
(
2
==
r
,
"field wrong
\n
"
);
r
=
MsiRecordGetInteger
(
rec
,
2
);
ok
(
1
==
r
,
"field wrong
\n
"
);
MsiCloseHandle
(
rec
);
MsiCloseHandle
(
hdb
);
MsiCloseHandle
(
hdb
);
DeleteFile
(
msifile
);
DeleteFile
(
msifile
);
}
}
...
...
dlls/msi/where.c
View file @
65d12c34
...
@@ -197,7 +197,7 @@ static UINT WHERE_evaluate( MSIDATABASE *db, MSIVIEW *table, UINT row,
...
@@ -197,7 +197,7 @@ static UINT WHERE_evaluate( MSIDATABASE *db, MSIVIEW *table, UINT row,
case
EXPR_COL_NUMBER32
:
case
EXPR_COL_NUMBER32
:
r
=
table
->
ops
->
fetch_int
(
table
,
row
,
cond
->
u
.
col_number
,
&
tval
);
r
=
table
->
ops
->
fetch_int
(
table
,
row
,
cond
->
u
.
col_number
,
&
tval
);
*
val
=
tval
;
*
val
=
tval
-
0x80000000
;
return
r
;
return
r
;
case
EXPR_UVAL
:
case
EXPR_UVAL
:
...
...
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