From fbbabca177dabb83c8bdc23b70063c1dbf3f2491 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Wed, 18 Oct 2023 21:32:23 -0600 Subject: [PATCH] commdlg: Set lCustData the same in GetSaveFileName as GetOpenFileName. Fixes: 691c7775d11f9f62c363aa419d00eee1e8d7da55 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55715 --- dlls/commdlg.dll16/filedlg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/commdlg.dll16/filedlg.c b/dlls/commdlg.dll16/filedlg.c index 33feda55ca3..62af940e754 100644 --- a/dlls/commdlg.dll16/filedlg.c +++ b/dlls/commdlg.dll16/filedlg.c @@ -664,7 +664,7 @@ BOOL16 WINAPI GetSaveFileName16( SEGPTR ofn ) /* [in/out] address of structure w ofn32.nFileOffset = lpofn->nFileOffset; ofn32.nFileExtension = lpofn->nFileExtension; ofn32.lpstrDefExt = MapSL( lpofn->lpstrDefExt ); - ofn32.lCustData = lpofn->lCustData; + ofn32.lCustData = ofn; /* See WM_INITDIALOG in the hook proc */ ofn32.lpfnHook = dummy_hook; /* this is to force old 3.1 dialog style */ if (lpofn->Flags & OFN_ENABLETEMPLATE)