diff --git a/src/drivers/win/ramwatch.cpp b/src/drivers/win/ramwatch.cpp index 89154d37..642a631e 100644 --- a/src/drivers/win/ramwatch.cpp +++ b/src/drivers/win/ramwatch.cpp @@ -1138,11 +1138,11 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam } case NM_SETFOCUS: listFocus = true; - InvalidateRect(GetDlgItem(RamWatchHWnd, IDC_WATCHLIST), 0, 0); + InvalidateRect(GetDlgItem(hDlg, IDC_WATCHLIST), 0, 0); break; case NM_KILLFOCUS: listFocus = false; - InvalidateRect(GetDlgItem(RamWatchHWnd, IDC_WATCHLIST), 0, 0); + InvalidateRect(GetDlgItem(hDlg, IDC_WATCHLIST), 0, 0); break; case NM_CUSTOMDRAW: {