From ff8949d65b0e765aeaa31ab8bef98ff7fe22bef6 Mon Sep 17 00:00:00 2001 From: NN Date: Mon, 5 Oct 2015 20:06:15 +0300 Subject: [PATCH] Review changes --- PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp b/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp index efd86084..2d902ac7 100644 --- a/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp +++ b/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp @@ -374,7 +374,7 @@ UINT_PTR CALLBACK FileDialog::OFNHookProc(HWND hWnd, UINT uMsg, WPARAM wParam, L // Don't touch the following 3 lines, they are cursed !!! oldProc = (WNDPROC)::GetWindowLongPtr(hFileDlg, GWLP_WNDPROC); - if ((LONG_PTR)oldProc > 0) + if (oldProc) ::SetWindowLongPtr(hFileDlg, GWLP_WNDPROC, (LONG_PTR)fileDlgProc); return FALSE;