summaryrefslogtreecommitdiffstats
path: root/libmsi/where.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-11-30 11:06:53 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-12-06 20:30:31 +0100
commit95586f6733d3fcbc756265818ef7e52b207542fe (patch)
tree6bc3b0de47e1001dab546f31cae765bf20b8998b /libmsi/where.c
parentc8b9a23e3d89efbc3f15f0c675a4bad421bfbe15 (diff)
downloadmsitools-95586f6733d3fcbc756265818ef7e52b207542fe.tar.gz
msitools-95586f6733d3fcbc756265818ef7e52b207542fe.tar.xz
msitools-95586f6733d3fcbc756265818ef7e52b207542fe.zip
use actual types in the API
Diffstat (limited to 'libmsi/where.c')
-rw-r--r--libmsi/where.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libmsi/where.c b/libmsi/where.c
index 87f9b07..9cc74d7 100644
--- a/libmsi/where.c
+++ b/libmsi/where.c
@@ -323,7 +323,7 @@ static unsigned WHERE_set_row( LibmsiView *view, unsigned row, LibmsiRecord *rec
continue;
}
- reduced = MSI_CreateRecord(col_count);
+ reduced = MsiCreateRecord(col_count);
if (!reduced)
return ERROR_FUNCTION_FAILED;
@@ -503,7 +503,7 @@ static unsigned STRING_evaluate( LibmsiWhereView *wv, const unsigned rows[],
break;
case EXPR_WILDCARD:
- *str = MSI_RecordGetString(record, ++wv->rec_index);
+ *str = MSI_RecordGetStringRaw(record, ++wv->rec_index);
break;
default:
@@ -587,7 +587,7 @@ static unsigned WHERE_evaluate( LibmsiWhereView *wv, const unsigned rows[],
return STRCMP_Evaluate( wv, rows, &cond->u.expr, val, record );
case EXPR_WILDCARD:
- *val = MSI_RecordGetInteger( record, ++wv->rec_index );
+ *val = MsiRecordGetInteger( record, ++wv->rec_index );
return ERROR_SUCCESS;
default:
@@ -881,7 +881,7 @@ static unsigned join_find_row( LibmsiWhereView *wv, LibmsiRecord *rec, unsigned
const WCHAR *str;
unsigned r, i, id, data;
- str = MSI_RecordGetString( rec, 1 );
+ str = MSI_RecordGetStringRaw( rec, 1 );
r = msi_string2idW( wv->db->strings, str, &id );
if (r != ERROR_SUCCESS)
return r;
@@ -915,9 +915,9 @@ static unsigned join_modify_update( LibmsiView *view, LibmsiRecord *rec )
if (r != ERROR_SUCCESS)
return r;
- assert(MSI_RecordGetFieldCount(rec) == MSI_RecordGetFieldCount(current));
+ assert(MsiRecordGetFieldCount(rec) == MsiRecordGetFieldCount(current));
- for (i = MSI_RecordGetFieldCount(rec); i > 0; i--)
+ for (i = MsiRecordGetFieldCount(rec); i > 0; i--)
{
if (!MSI_RecordsAreFieldsEqual(rec, current, i))
mask |= 1 << (i - 1);