From 148b414b63b39c91483aba6062c74501e444203e Mon Sep 17 00:00:00 2001 From: Ricardo Filipe Date: Sun, 18 Jan 2009 04:57:21 +0000 Subject: comdlg32/tests: fix notification code for filedlg test --- dlls/comdlg32/tests/filedlg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/comdlg32/tests/filedlg.c b/dlls/comdlg32/tests/filedlg.c index 9c3487f..5dc7a36 100644 --- a/dlls/comdlg32/tests/filedlg.c +++ b/dlls/comdlg32/tests/filedlg.c @@ -35,7 +35,7 @@ static UINT CALLBACK OFNHookProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lPa if( msg == WM_NOTIFY) { - nmh = (LPNMHDR) lParam; + nmh = &((LPOFNOTIFY) lParam)->hdr; if( nmh->code == CDN_INITDONE) { PostMessage( GetParent(hDlg), WM_COMMAND, IDCANCEL, FALSE); -- 1.5.6.3