commdlg: Set lCustData the same in GetSaveFileName as GetOpenFileName.

Fixes: 691c7775d1
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55715
This commit is contained in:
Alex Henrie 2023-10-18 21:32:23 -06:00 committed by Alexandre Julliard
parent e8d849efce
commit fbbabca177
Notes: Alexandre Julliard 2023-10-19 23:28:34 +02:00
Approved-by: Huw Davies (@huw)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/-/merge_requests/4137

View file

@ -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)