From 24d28fbf758e93204515c2e5bf7d2b0e533553c3 Mon Sep 17 00:00:00 2001 From: Selva Nair Date: Thu, 19 Jan 2023 11:48:16 -0500 Subject: [PATCH] Property not removed due to wrong property name in pkcs11.c Signed-off-by: Selva Nair --- pkcs11.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkcs11.c b/pkcs11.c index aeea04f..7861a0a 100644 --- a/pkcs11.c +++ b/pkcs11.c @@ -38,6 +38,7 @@ #include extern options_t o; +static const wchar_t *hfontProp; /* state of list array */ #define STATE_GET_COUNT 1 @@ -417,7 +418,7 @@ pkcs11_listview_init(HWND parent) if (hfb) { SendMessage(ListView_GetHeader(lv), WM_SETFONT, (WPARAM)hfb, 1); - SetProp(parent, L"header_font", (HANDLE)hfb); + SetProp(parent, hfontProp, (HANDLE)hfb); } } @@ -658,12 +659,12 @@ QueryPkcs11DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) case WM_NCDESTROY: RemoveProp(hwndDlg, cfgProp); - HFONT hf = (HFONT) GetProp(hwndDlg, L"header_font"); + HFONT hf = (HFONT) GetProp(hwndDlg, hfontProp); if (hf) { DeleteObject(hf); } - RemoveProp(hwndDlg, cfgProp); + RemoveProp(hwndDlg, hfontProp); break; } return FALSE;