[7/8] msi: Get rid of the msistring typedef.

Hans Leidekker hans at codeweavers.com
Thu Jul 7 02:23:14 CDT 2011


---
 dlls/msi/string.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/msi/string.c b/dlls/msi/string.c
index 142658f..4185c15 100644
--- a/dlls/msi/string.c
+++ b/dlls/msi/string.c
@@ -41,12 +41,12 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(msidb);
 
-typedef struct _msistring
+struct msistring
 {
     USHORT persistent_refcount;
     USHORT nonpersistent_refcount;
     LPWSTR str;
-} msistring;
+};
 
 struct string_table
 {
@@ -54,8 +54,8 @@ struct string_table
     UINT freeslot;
     UINT codepage;
     UINT sortcount;
-    msistring *strings; /* an array of strings */
-    UINT *sorted;       /* index */
+    struct msistring *strings; /* an array of strings */
+    UINT *sorted;              /* index */
 };
 
 static BOOL validate_codepage( UINT codepage )
@@ -81,7 +81,7 @@ static string_table *init_stringtable( int entries, UINT codepage )
     if( entries < 1 )
         entries = 1;
 
-    st->strings = msi_alloc_zero( sizeof (msistring) * entries );
+    st->strings = msi_alloc_zero( sizeof(struct msistring) * entries );
     if( !st->strings )
     {
         msi_free( st );
@@ -122,7 +122,7 @@ VOID msi_destroy_stringtable( string_table *st )
 static int st_find_free_entry( string_table *st )
 {
     UINT i, sz, *s;
-    msistring *p;
+    struct msistring *p;
 
     TRACE("%p\n", st);
 
@@ -140,7 +140,7 @@ static int st_find_free_entry( string_table *st )
 
     /* dynamically resize */
     sz = st->maxcount + 1 + st->maxcount/2;
-    p = msi_realloc_zero( st->strings, sz*sizeof(msistring) );
+    p = msi_realloc_zero( st->strings, sz * sizeof(struct msistring) );
     if( !p )
         return -1;
 
-- 
1.7.4.1







More information about the wine-patches mailing list