Nikolay Sivov : win32u: Fix typo in font handle creation in NtUserDrawCaptionTemp().

Alexandre Julliard julliard at winehq.org
Thu Jul 28 16:01:13 CDT 2022


Module: wine
Branch: master
Commit: d909f2759066afd128aa1a299d3367c7ab76da8f
URL:    https://gitlab.winehq.org/wine/wine/-/commit/d909f2759066afd128aa1a299d3367c7ab76da8f

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Jul 28 22:23:19 2022 +0300

win32u: Fix typo in font handle creation in NtUserDrawCaptionTemp().

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>

---

 dlls/win32u/defwnd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/win32u/defwnd.c b/dlls/win32u/defwnd.c
index d271b5b9670..a409ad4a1e0 100644
--- a/dlls/win32u/defwnd.c
+++ b/dlls/win32u/defwnd.c
@@ -1650,7 +1650,7 @@ BOOL WINAPI NtUserDrawCaptionTemp( HWND hwnd, HDC hdc, const RECT *rect, HFONT f
             nclm.cbSize = sizeof(NONCLIENTMETRICSW);
             NtUserSystemParametersInfo( SPI_GETNONCLIENTMETRICS, 0, &nclm, 0 );
             lf = (flags & DC_SMALLCAP) ? &nclm.lfSmCaptionFont : &nclm.lfCaptionFont;
-            new_font = NtGdiHfontCreate( &lf, sizeof(lf), 0, 0, NULL );
+            new_font = NtGdiHfontCreate( lf, sizeof(*lf), 0, 0, NULL );
             prev_font = NtGdiSelectFont( hdc, new_font );
         }
 




More information about the wine-cvs mailing list