summaryrefslogtreecommitdiffstats
path: root/include/libmsi.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-10-23 12:49:25 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-12-06 20:30:30 +0100
commitc87cdd87005f65bc458a3d6167aa7e2a73ed47b5 (patch)
tree6f44473fa7cb4126e7633e69e4647c8590d62cc7 /include/libmsi.h
parent110f65204388339e16f739afc24ddbb2826f0b71 (diff)
downloadmsitools-c87cdd87005f65bc458a3d6167aa7e2a73ed47b5.tar.gz
msitools-c87cdd87005f65bc458a3d6167aa7e2a73ed47b5.tar.xz
msitools-c87cdd87005f65bc458a3d6167aa7e2a73ed47b5.zip
make MsiOpenDatabase ASCII only
Removes DeleteFile, LPCTSTR, GetCurrentDirectoryW.
Diffstat (limited to 'include/libmsi.h')
-rw-r--r--include/libmsi.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/include/libmsi.h b/include/libmsi.h
index 8f06853..188fd69 100644
--- a/include/libmsi.h
+++ b/include/libmsi.h
@@ -58,11 +58,11 @@ typedef enum LibmsiModify
LIBMSI_MODIFY_VALIDATE_DELETE = 11
} LibmsiModify;
-#define LIBMSI_DB_OPEN_READONLY (LPCTSTR)0
-#define LIBMSI_DB_OPEN_TRANSACT (LPCTSTR)1
-#define LIBMSI_DB_OPEN_DIRECT (LPCTSTR)2
-#define LIBMSI_DB_OPEN_CREATE (LPCTSTR)3
-#define LIBMSI_DB_OPEN_CREATEDIRECT (LPCTSTR)4
+#define LIBMSI_DB_OPEN_READONLY (const char *)0
+#define LIBMSI_DB_OPEN_TRANSACT (const char *)1
+#define LIBMSI_DB_OPEN_DIRECT (const char *)2
+#define LIBMSI_DB_OPEN_CREATE (const char *)3
+#define LIBMSI_DB_OPEN_CREATEDIRECT (const char *)4
#define LIBMSI_DB_OPEN_PATCHFILE 32 / sizeof(*LIBMSI_DB_OPEN_READONLY)
@@ -216,9 +216,7 @@ unsigned MsiDatabaseImportA(LibmsiObject *, const char *, const char *);
unsigned MsiDatabaseImportW(LibmsiObject *, const WCHAR *, const WCHAR *);
#define MsiDatabaseImport WINELIB_NAME_AW(MsiDatabaseImport)
-unsigned MsiOpenDatabaseW(const WCHAR *, const WCHAR *, LibmsiObject **);
-unsigned MsiOpenDatabaseA(const char *, const char *, LibmsiObject **);
-#define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
+unsigned MsiOpenDatabase(const char *, const char *, LibmsiObject **);
LibmsiCondition MsiDatabaseIsTablePersistentA(LibmsiObject *, const char *);
LibmsiCondition MsiDatabaseIsTablePersistentW(LibmsiObject *, const WCHAR *);