diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-05 10:11:47 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-06 20:30:34 +0100 |
commit | 1222609fc5d9c980c1da9fb839f86455047c7c91 (patch) | |
tree | 745775fe5729f7cfa13dc99f9ff085f7aa52caca /libmsi/alter.c | |
parent | 175346aac4942eb97ccf2f00ca127cf700cd2eff (diff) | |
download | msitools-1222609fc5d9c980c1da9fb839f86455047c7c91.tar.gz msitools-1222609fc5d9c980c1da9fb839f86455047c7c91.tar.xz msitools-1222609fc5d9c980c1da9fb839f86455047c7c91.zip |
eliminate WCHAR
Diffstat (limited to 'libmsi/alter.c')
-rw-r--r-- | libmsi/alter.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libmsi/alter.c b/libmsi/alter.c index 9e1e5d9..7110f05 100644 --- a/libmsi/alter.c +++ b/libmsi/alter.c @@ -74,13 +74,13 @@ static unsigned count_iter(LibmsiRecord *row, void *param) return LIBMSI_RESULT_SUCCESS; } -static bool check_column_exists(LibmsiDatabase *db, const WCHAR *table, const WCHAR *column) +static bool check_column_exists(LibmsiDatabase *db, const char *table, const char *column) { LibmsiQuery *view; LibmsiRecord *rec; unsigned r; - static const WCHAR query[] = { + static const char query[] = { 'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ', '`','_','C','o','l','u','m','n','s','`',' ','W','H','E','R','E',' ', '`','T','a','b','l','e','`','=','\'','%','s','\'',' ','A','N','D',' ', @@ -110,8 +110,8 @@ static unsigned alter_add_column(LibmsiAlterView *av) LibmsiQuery *view; LibmsiView *columns; - static const WCHAR szColumns[] = {'_','C','o','l','u','m','n','s',0}; - static const WCHAR query[] = { + static const char szColumns[] = {'_','C','o','l','u','m','n','s',0}; + static const char query[] = { 'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ', '`','_','C','o','l','u','m','n','s','`',' ','W','H','E','R','E',' ', '`','T','a','b','l','e','`','=','\'','%','s','\'',' ','O','R','D','E','R',' ', @@ -187,8 +187,8 @@ static unsigned alter_view_get_dimensions( LibmsiView *view, unsigned *rows, uns return LIBMSI_RESULT_FUNCTION_FAILED; } -static unsigned alter_view_get_column_info( LibmsiView *view, unsigned n, const WCHAR **name, - unsigned *type, bool *temporary, const WCHAR **table_name ) +static unsigned alter_view_get_column_info( LibmsiView *view, unsigned n, const char **name, + unsigned *type, bool *temporary, const char **table_name ) { LibmsiAlterView *av = (LibmsiAlterView*)view; @@ -239,12 +239,12 @@ static const LibmsiViewOps alter_ops = NULL, }; -unsigned alter_view_create( LibmsiDatabase *db, LibmsiView **view, const WCHAR *name, column_info *colinfo, int hold ) +unsigned alter_view_create( LibmsiDatabase *db, LibmsiView **view, const char *name, column_info *colinfo, int hold ) { LibmsiAlterView *av; unsigned r; - TRACE("%p %p %s %d\n", view, colinfo, debugstr_w(name), hold ); + TRACE("%p %p %s %d\n", view, colinfo, debugstr_a(name), hold ); av = msi_alloc_zero( sizeof *av ); if( !av ) |