--- gatomic.c.orig	2004-10-20 05:05:09.000000000 +0900
+++ gatomic.c	2004-10-20 05:06:49.000000000 +0900
@@ -474,9 +474,9 @@
 				   gint32    oldval, 
 				   gint32    newval)
 {
-  return (guint32)InterlockedCompareExchange ((PVOID*)atomic, 
-                                              (PVOID)newval, 
-                                              (PVOID)oldval) == oldval;
+  return InterlockedCompareExchange (atomic, 
+                                     newval, 
+                                     oldval) == oldval;
 }
 
 gboolean 
@@ -487,7 +487,7 @@
 # if GLIB_SIZEOF_VOID_P != 4 /* no 32-bit system */
 #  error "InterlockedCompareExchangePointer needed"
 # else
-   return InterlockedCompareExchange (atomic, newval, oldval) == oldval;
+   return InterlockedCompareExchangePointer (atomic, newval, oldval) == oldval;
 # endif
 }
 #endif /* DEFINE_WITH_WIN32_INTERLOCKED */
