diff options
| author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-12-15 01:16:04 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-01-09 13:56:06 +0100 |
| commit | ab8e8a0cd0f9b5611f07c71a94ec17ffd9bd4e84 (patch) | |
| tree | 976ff7ecb007cbd8338ddfdbd25b282fe1acc49a /tools | |
| parent | 032e8f05e3381311a0ea37531e2cdc6b29e80bf5 (diff) | |
| download | msitools-ab8e8a0cd0f9b5611f07c71a94ec17ffd9bd4e84.tar.gz msitools-ab8e8a0cd0f9b5611f07c71a94ec17ffd9bd4e84.tar.xz msitools-ab8e8a0cd0f9b5611f07c71a94ec17ffd9bd4e84.zip | |
query: make get_column_info() GObject-like
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/msiinfo.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/msiinfo.c b/tools/msiinfo.c index 216c500..7431fff 100644 --- a/tools/msiinfo.c +++ b/tools/msiinfo.c @@ -426,7 +426,7 @@ end: return 0; } -static unsigned export_create_table(const char *table, +static unsigned export_create_table(const char *table, LibmsiRecord *names, LibmsiRecord *types, LibmsiRecord *keys) @@ -521,7 +521,7 @@ static void print_quoted_string(const char *s) putchar('\''); } -static unsigned export_insert(const char *table, +static unsigned export_insert(const char *table, LibmsiRecord *names, LibmsiRecord *types, LibmsiRecord *vals) @@ -609,14 +609,14 @@ static unsigned export_sql( LibmsiDatabase *db, const char *table, GError **erro } /* write out row 1, the column names */ - r = libmsi_query_get_column_info(query, LIBMSI_COL_INFO_NAMES, &name); - if (r) { + name = libmsi_query_get_column_info(query, LIBMSI_COL_INFO_NAMES, error); + if (error) { goto done; } /* write out row 2, the column types */ - r = libmsi_query_get_column_info(query, LIBMSI_COL_INFO_TYPES, &type); - if (r) { + type = libmsi_query_get_column_info(query, LIBMSI_COL_INFO_TYPES, error); + if (error) { goto done; } |
