mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 11:56:45 +02:00
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:
parent
82427d006f
commit
efd27b4488
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user