From b3fa23e88db19b831161d49c98a390e4fbc60782 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Tue, 28 May 2024 16:32:27 +0200 Subject: [PATCH] conhost: Fix display of font preview in 64-bit mode. Signed-off-by: Eric Pouech --- programs/conhost/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/conhost/window.c b/programs/conhost/window.c index 043ecd5510f..a5dd9979534 100644 --- a/programs/conhost/window.c +++ b/programs/conhost/window.c @@ -1367,7 +1367,7 @@ static COLORREF get_color( struct dialog_info *di, unsigned int idc ) { LONG_PTR index; - index = GetWindowLongPtrW(GetDlgItem( di->dialog, idc ), 0); + index = GetWindowLongW(GetDlgItem( di->dialog, idc ), 0); return di->config.color_map[index]; }