fix misuse of SetWindowLongPtr
This commit is contained in:
parent
e5a7fbe634
commit
b138666bf6
|
@ -301,8 +301,8 @@ INT_PTR CALLBACK MemView_DlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||
case WM_INITDIALOG:
|
||||
{
|
||||
wnd = (CMemView*)lParam;
|
||||
SetWindowLongPtr(hDlg, DWLP_USER, (LONG)wnd);
|
||||
SetWindowLongPtr(GetDlgItem(hDlg, IDC_MEMVIEWBOX), DWLP_USER, (LONG)wnd);
|
||||
SetWindowLongPtr(hDlg, DWLP_USER, (LONG_PTR)wnd);
|
||||
SetWindowLongPtr(GetDlgItem(hDlg, IDC_MEMVIEWBOX), DWLP_USER, (LONG_PTR)wnd);
|
||||
|
||||
wnd->font = CreateFont(16, 0, 0, 0, FW_MEDIUM, FALSE, FALSE, FALSE, DEFAULT_CHARSET,
|
||||
OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, GetFontQuality(), FIXED_PITCH, "Courier New");
|
||||
|
|
Loading…
Reference in New Issue