[PATCH] do not mark the tables const

Marcus Meissner marcus at jet.franken.de
Thu Apr 26 15:05:54 CDT 2007


The .hash_table part is written to by the MSI table code.

Ciao, Marcus
---
 dlls/msi/table.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index 0d96793..c3562f4 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -91,13 +91,16 @@ static const WCHAR szColumns[] = { '_','
 static const WCHAR szNumber[]  = { 'N','u','m','b','e','r',0 };
 static const WCHAR szType[]    = { 'T','y','p','e',0 };
 
-static const MSICOLUMNINFO _Columns_cols[4] = {
+/* These tables are written into (the .hash_table part).
+ * Do not mark them const.
+ */
+static MSICOLUMNINFO _Columns_cols[4] = {
     { szColumns, 1, szTable,  MSITYPE_VALID | MSITYPE_STRING | 64, 0 },
     { szColumns, 2, szNumber, MSITYPE_VALID | 2,                   2 },
     { szColumns, 3, szName,   MSITYPE_VALID | MSITYPE_STRING | 64, 4 },
     { szColumns, 4, szType,   MSITYPE_VALID | 2,                   6 },
 };
-static const MSICOLUMNINFO _Tables_cols[1] = {
+static MSICOLUMNINFO _Tables_cols[1] = {
     { szTables,  1, szName,   MSITYPE_VALID | MSITYPE_STRING | 64, 0 },
 };
 
-- 
1.4.3.4



More information about the wine-patches mailing list