From f8a6d5631667c382ecc9148f07163cb36681ddc4 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 17 May 2018 09:57:44 +0300 Subject: IEHistory: cmplugin adaptation --- plugins/IEHistory/src/dlgHandlers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/IEHistory/src/dlgHandlers.cpp') diff --git a/plugins/IEHistory/src/dlgHandlers.cpp b/plugins/IEHistory/src/dlgHandlers.cpp index dad7eb3932..5a2d643f3c 100644 --- a/plugins/IEHistory/src/dlgHandlers.cpp +++ b/plugins/IEHistory/src/dlgHandlers.cpp @@ -374,7 +374,7 @@ INT_PTR CALLBACK HistoryDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara 0, 0, //width, height hWnd, //parent (HMENU)IDC_STATUSBAR, //menu - hInstance, //instance + g_plugin.getInst(), //instance nullptr); //lpParam int x; int widths[] = { x = 50, x += 50, x += 150, -1 }; @@ -464,7 +464,7 @@ INT_PTR CALLBACK HistoryDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara break; case IDC_SEARCH: - HWND hSearch = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_SEARCH), hWnd, SearchDlgProc); + HWND hSearch = CreateDialog(g_plugin.getInst(), MAKEINTRESOURCE(IDD_SEARCH), hWnd, SearchDlgProc); if (hSearch == nullptr) { char buffer[1024]; sprintf(buffer, "Error #%d", GetLastError()); -- cgit v1.2.3