comdlg32: Copy additional structure members if present.

This commit is contained in:
Huw Davies 2012-09-21 13:22:50 +01:00 committed by Alexandre Julliard
parent 16c7653c2d
commit 9db8e593bf

View file

@ -804,6 +804,12 @@ static void FD31_MapOfnStructA(const OPENFILENAMEA *ofnA, LPOPENFILENAMEW ofnW,
else /* numbered resource */ else /* numbered resource */
ofnW->lpTemplateName = (LPCWSTR) ofnA->lpTemplateName; ofnW->lpTemplateName = (LPCWSTR) ofnA->lpTemplateName;
} }
if (ofnW->lStructSize > OPENFILENAME_SIZE_VERSION_400W)
{
ofnW->pvReserved = ofnA->pvReserved;
ofnW->dwReserved = ofnA->dwReserved;
ofnW->FlagsEx = ofnA->FlagsEx;
}
} }