win32 interface: fix compilation on win64 by using the callback declaration from the windows unit, because the record declaration is used from the windows unit too. In fpc < 2.5.1 the windows unit still contains a bug and the callback from the commdlg is not type compatible.

git-svn-id: trunk@30897 -
This commit is contained in:
vincents 2011-05-25 13:43:46 +00:00
parent 82427d006f
commit efd27b4488

View File

@ -701,7 +701,7 @@ begin
{$endif}
nMaxFile := FileNameBufferLen + 1; // Size in TCHARs
lpfnHook := LPOFNHOOKPROC(@OpenFileDialogCallBack);
lpfnHook := Windows.LPOFNHOOKPROC(@OpenFileDialogCallBack);
Flags := GetFlagsFromOptions(AOpenDialog.Options);
New(DialogRec);
// new initializes the filename fields, because ansistring and widestring