mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-11 17:01:14 +01:00
LCL-Win32: Fix an error in TWin32WSOpenDialog.GetFileName caused by an earlier commit.
This commit is contained in:
parent
ddfd3414de
commit
a703d0c00f
@ -818,7 +818,7 @@ class function TWin32WSOpenDialog.GetFileName(ShellItem: IShellItem): String;
|
||||
var
|
||||
FilePath: LPWStr;
|
||||
begin
|
||||
if Succeeded(ShellItem.GetDisplayName(SIGDN(SIGDN_FILESYSPATH), FilePath)) then
|
||||
if Succeeded(ShellItem.GetDisplayName(SIGDN(SIGDN_FILESYSPATH), LPWStr(@FilePath))) then
|
||||
begin
|
||||
Result := UTF16ToUTF8(FilePath);
|
||||
CoTaskMemFree(FilePath);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user