Fileokstring notification should be sent to the custom child dialog,

not to the main dialog.
This commit is contained in:
Gerard Patel 2000-12-07 23:54:19 +00:00 committed by Alexandre Julliard
parent 48d0c5fd65
commit 6bbf46a964
1 changed files with 3 additions and 2 deletions

View File

@ -1522,8 +1522,9 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
/* FIXME we are sending ASCII-structures. Does not work with NT */
/* first old style */
TRACE("---\n");
CallWindowProcA((WNDPROC)fodInfos->ofnInfos->lpfnHook, hwnd,
fodInfos->HookMsg.fileokstring, 0, (LPARAM)fodInfos->ofnInfos);
CallWindowProcA((WNDPROC)fodInfos->ofnInfos->lpfnHook,
fodInfos->DlgInfos.hwndCustomDlg,
fodInfos->HookMsg.fileokstring, 0, (LPARAM)fodInfos->ofnInfos);
if (GetWindowLongA(hwnd, DWL_MSGRESULT))
{
TRACE("cancled\n");