comdlg32: Copy additional structure members if present.
This commit is contained in:
parent
16c7653c2d
commit
9db8e593bf
|
@ -804,6 +804,12 @@ static void FD31_MapOfnStructA(const OPENFILENAMEA *ofnA, LPOPENFILENAMEW ofnW,
|
|||
else /* numbered resource */
|
||||
ofnW->lpTemplateName = (LPCWSTR) ofnA->lpTemplateName;
|
||||
}
|
||||
if (ofnW->lStructSize > OPENFILENAME_SIZE_VERSION_400W)
|
||||
{
|
||||
ofnW->pvReserved = ofnA->pvReserved;
|
||||
ofnW->dwReserved = ofnA->dwReserved;
|
||||
ofnW->FlagsEx = ofnA->FlagsEx;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue