https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6425c406fb28c4da1ab78…
commit 6425c406fb28c4da1ab784b97c483e81cc7c9532
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Mar 13 00:16:38 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:28:11 2022 +0100
[WINESYNC] msi: Implement UPDATE queries using msi_select_update().
Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com>
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 40a08f8362c191b51db07a483c4f41fa61158c76 by Zebediah Figura
<z.figura12(a)gmail.com>
---
dll/win32/msi/query.h | 2 ++
dll/win32/msi/select.c | 2 +-
dll/win32/msi/update.c | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dll/win32/msi/query.h b/dll/win32/msi/query.h
index 063fbb97496..d79c14fd42e 100644
--- a/dll/win32/msi/query.h
+++ b/dll/win32/msi/query.h
@@ -151,4 +151,6 @@ MSIRECORD *msi_query_merge_record( UINT fields, const column_info *vl,
MSIRECORD
UINT msi_create_table( MSIDATABASE *db, LPCWSTR name, column_info *col_info,
MSICONDITION persistent ) DECLSPEC_HIDDEN;
+UINT msi_select_update( MSIVIEW *view, MSIRECORD *rec, UINT row ) DECLSPEC_HIDDEN;
+
#endif /* __WINE_MSI_QUERY_H */
diff --git a/dll/win32/msi/select.c b/dll/win32/msi/select.c
index 9d3d887f56b..ef16e5d09f7 100644
--- a/dll/win32/msi/select.c
+++ b/dll/win32/msi/select.c
@@ -230,7 +230,7 @@ static UINT SELECT_get_column_info( struct tagMSIVIEW *view, UINT n,
LPCWSTR *na
type, temporary, table_name );
}
-static UINT msi_select_update(struct tagMSIVIEW *view, MSIRECORD *rec, UINT row)
+UINT msi_select_update(MSIVIEW *view, MSIRECORD *rec, UINT row)
{
MSISELECTVIEW *sv = (MSISELECTVIEW*)view;
UINT r, i, col, type, val;
diff --git a/dll/win32/msi/update.c b/dll/win32/msi/update.c
index e61342d11e4..4aa03443f0c 100644
--- a/dll/win32/msi/update.c
+++ b/dll/win32/msi/update.c
@@ -113,7 +113,7 @@ static UINT UPDATE_execute( struct tagMSIVIEW *view, MSIRECORD *record
)
for ( i=0; i<row_count; i++ )
{
- r = wv->ops->set_row( wv, i, values, (1 << col_count) - 1 );
+ r = msi_select_update( wv, values, i );
if (r != ERROR_SUCCESS)
break;
}