Module: wine Branch: master Commit: d909f2759066afd128aa1a299d3367c7ab76da8f URL: https://gitlab.winehq.org/wine/wine/-/commit/d909f2759066afd128aa1a299d3367c...
Author: Nikolay Sivov nsivov@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@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 ); }