diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 3ec28f9c770..6036f48e08d 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -5062,7 +5062,7 @@ BOOL WineEngGetLinkedHFont(DC *dc, WCHAR c, HFONT *new_hfont, UINT *glyph)
 
 DWORD WineEngGetFontUnicodeRanges(GdiFont *font, LPGLYPHSET glyphset)
 {
-    FIXME("(%p, %p): stub\n", hdc, glyphset);
+    FIXME("(%p, %p): stub\n", font, glyphset);
     return 0;
 }