Peter Urbanec : setupapi: Fix comparison issue on 64-bit systems.

Alexandre Julliard julliard at winehq.org
Tue Feb 8 17:23:47 CST 2011


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

Author: Peter Urbanec <winehq.org at urbanec.net>
Date:   Tue Feb  8 15:58:43 2011 +1100

setupapi: Fix comparison issue on 64-bit systems.

---

 dlls/setupapi/setupcab.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/setupapi/setupcab.c b/dlls/setupapi/setupcab.c
index 77f2b59..f4c6600 100644
--- a/dlls/setupapi/setupcab.c
+++ b/dlls/setupapi/setupcab.c
@@ -412,7 +412,7 @@ static INT_PTR CDECL sc_FNNOTIFY_W(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION p
 
   TRACE("(fdint == %d, pfdin == ^%p)\n", fdint, pfdin);
 
-  if (pfdin && pfdin->pv && (*((void **) pfdin->pv) == (void *)SC_HSC_W_MAGIC))
+  if (pfdin && pfdin->pv && (((PSC_HSC_W) pfdin->pv)->magic == SC_HSC_W_MAGIC))
     phsc = pfdin->pv;
   else {
     ERR("pv %p is not an SC_HSC_W.\n", (pfdin) ? pfdin->pv : NULL);




More information about the wine-cvs mailing list