diff --git a/dlls/winex11.drv/xrandr.c b/dlls/winex11.drv/xrandr.c
index e9670c37be37644d077918d1d57164fea36fadbd..58e66d69ef56b0575f43e01b63d378fb35de9112 100644
--- a/dlls/winex11.drv/xrandr.c
+++ b/dlls/winex11.drv/xrandr.c
@@ -163,7 +163,7 @@ static LONG xrandr10_set_current_mode( int mode )
 
     root = DefaultRootWindow( gdi_display );
     sc = pXRRGetScreenInfo (gdi_display, root);
-    size = pXRRConfigCurrentConfiguration (sc, &rot);
+    pXRRConfigCurrentConfiguration (sc, &rot);
     mode = mode % xrandr_mode_count;
 
     TRACE("Changing Resolution to %dx%d @%d Hz\n",