From 116d81a67a7c93fbd0041849bc7d1b4a19aa0407 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 22 Sep 2013 11:05:54 +0000 Subject: more cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6180 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/UserInfoEx/src/ex_import') diff --git a/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp b/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp index 02ba385361..b0b3e170a7 100644 --- a/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp +++ b/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp @@ -168,7 +168,7 @@ static LRESULT CALLBACK PlacesBarSubclassProc(HWND hWnd, UINT uMsg, WPARAM wPara * lParam - message dependend parameter * return: depends on message **/ -static LRESULT CALLBACK OpenSaveFileDialogHook(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) +static UINT_PTR CALLBACK OpenSaveFileDialogHook(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch (uMsg) { case WM_NOTIFY: @@ -257,7 +257,6 @@ static void InitOpenFileNameStruct(OPENFILENAMEA *pofn, HWND hWndParent, LPCSTR { ZeroMemory(pofn, sizeof(OPENFILENAME)); - pofn->Flags = OFN_NONETWORKBUTTON|OFN_ENABLESIZING; pofn->hwndOwner = hWndParent; pofn->lpstrTitle = pszTitle; pofn->lpstrFilter = pszFilter; @@ -268,8 +267,8 @@ static void InitOpenFileNameStruct(OPENFILENAMEA *pofn, HWND hWndParent, LPCSTR GetInitialDir(pszInitialDir); pofn->lpstrInitialDir = pszInitialDir; pofn->lStructSize = sizeof (OPENFILENAME); - pofn->Flags |= OFN_ENABLEHOOK|OFN_EXPLORER; - pofn->lpfnHook = (LPOFNHOOKPROC)OpenSaveFileDialogHook; + pofn->Flags = OFN_NONETWORKBUTTON|OFN_ENABLESIZING|OFN_ENABLEHOOK|OFN_EXPLORER; + pofn->lpfnHook = OpenSaveFileDialogHook; } -- cgit v1.2.3