mirror of https://github.com/OpenVPN/openvpn-gui
Property not removed due to wrong property name in pkcs11.c
Signed-off-by: Selva Nair <selva.nair@gmail.com>pull/591/head
parent
9417991168
commit
80697ecae6
7
pkcs11.c
7
pkcs11.c
|
@ -38,6 +38,7 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
extern options_t o;
|
extern options_t o;
|
||||||
|
static const wchar_t *hfontProp;
|
||||||
|
|
||||||
/* state of list array */
|
/* state of list array */
|
||||||
#define STATE_GET_COUNT 1
|
#define STATE_GET_COUNT 1
|
||||||
|
@ -417,7 +418,7 @@ pkcs11_listview_init(HWND parent)
|
||||||
if (hfb)
|
if (hfb)
|
||||||
{
|
{
|
||||||
SendMessage(ListView_GetHeader(lv), WM_SETFONT, (WPARAM)hfb, 1);
|
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:
|
case WM_NCDESTROY:
|
||||||
RemoveProp(hwndDlg, cfgProp);
|
RemoveProp(hwndDlg, cfgProp);
|
||||||
HFONT hf = (HFONT) GetProp(hwndDlg, L"header_font");
|
HFONT hf = (HFONT) GetProp(hwndDlg, hfontProp);
|
||||||
if (hf)
|
if (hf)
|
||||||
{
|
{
|
||||||
DeleteObject(hf);
|
DeleteObject(hf);
|
||||||
}
|
}
|
||||||
RemoveProp(hwndDlg, cfgProp);
|
RemoveProp(hwndDlg, hfontProp);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue