win32: fix GPrivate fallout
[platform/upstream/glib.git] / glib / gthread-win32.c
index 1ed2842..20d2e21 100644 (file)
@@ -436,7 +436,7 @@ g_private_replace (GPrivate *key,
   DWORD impl = g_private_get_impl (key);
   gpointer old;
 
-  old = TlsGetValue (impl, value);
+  old = TlsGetValue (impl);
   if (old && key->notify)
     key->notify (old);
   TlsSetValue (impl, value);