mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Fix a mismatch of GetWindowLong with GWLP_*.
In commit bb59f27386
I changed a use of the constant GWL_ID to
GWLP_ID, on the grounds that the former caused a build failure under
winelib. But the GWLP constants are supposed to be used with
GetWindowLongPtr, and I was still calling GetWindowLong.
(Benign, since the two sets of constants are the same. But that is the
only case in the whole code base where I'd made that error, and since
it was only introduced a couple of days ago, there's no possibility of
a longstanding historical reason for carefully not touching it!)
This commit is contained in:
parent
fd41f5dac0
commit
7153218b08
@ -923,7 +923,7 @@ static INT_PTR CALLBACK HostKeyDialogProc(HWND hwnd, UINT msg,
|
||||
HDC hdc = (HDC)wParam;
|
||||
HWND control = (HWND)lParam;
|
||||
|
||||
if (GetWindowLong(control, GWLP_ID) == IDC_HK_TITLE) {
|
||||
if (GetWindowLongPtr(control, GWLP_ID) == IDC_HK_TITLE) {
|
||||
SetBkMode(hdc, TRANSPARENT);
|
||||
HFONT prev_font = (HFONT)SelectObject(
|
||||
hdc, (HFONT)GetStockObject(SYSTEM_FONT));
|
||||
|
Loading…
Reference in New Issue
Block a user