Alexandre Julliard : msi: Fixed definition of the MSIITERHANDLE type.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 6 08:48:34 CST 2006


Module: wine
Branch: master
Commit: 36c4ec8f33d2d4493b0fc25e3d2f298383464555
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=36c4ec8f33d2d4493b0fc25e3d2f298383464555

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Nov  6 13:02:47 2006 +0100

msi: Fixed definition of the MSIITERHANDLE type.

---

 dlls/msi/msipriv.h |    2 +-
 dlls/msi/table.c   |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h
index 2e4f5d2..8fe25d6 100644
--- a/dlls/msi/msipriv.h
+++ b/dlls/msi/msipriv.h
@@ -109,7 +109,7 @@ typedef struct tagMSIRECORD
     MSIFIELD fields[1]; /* nb. array size is count+1 */
 } MSIRECORD;
 
-typedef void *MSIITERHANDLE;
+typedef const struct tagMSICOLUMNHASHENTRY *MSIITERHANDLE;
 
 typedef struct tagMSIVIEWOPS
 {
diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index 2282f08..c66048a 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -1587,12 +1587,12 @@ static UINT TABLE_find_matching_rows( st
     if( !*handle )
         entry = tv->columns[col-1].hash_table[val % MSITABLE_HASH_TABLE_SIZE];
     else
-        entry = ((const MSICOLUMNHASHENTRY *)*handle)->next;
+        entry = (*handle)->next;
 
     while (entry && entry->value != val)
         entry = entry->next;
 
-    *handle = (MSIITERHANDLE)entry;
+    *handle = entry;
     if (!entry)
         return ERROR_NO_MORE_ITEMS;
 




More information about the wine-cvs mailing list