mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 18:49:19 +02:00
WS, Win32: ShowModal, Fix checking for correct handle. Prevent crash. See Issue #39314
(cherry picked from commit 754cedea82
)
This commit is contained in:
parent
962f05f665
commit
02f62c3836
@ -995,7 +995,7 @@ var
|
|||||||
lOldWorkingDir, lInitialDir: string;
|
lOldWorkingDir, lInitialDir: string;
|
||||||
Dialog: IFileOpenDialog;
|
Dialog: IFileOpenDialog;
|
||||||
begin
|
begin
|
||||||
if ACommonDialog.Handle <> 0 then
|
if ACommonDialog.Handle <> INVALID_HANDLE_VALUE then
|
||||||
begin
|
begin
|
||||||
State := SaveApplicationState;
|
State := SaveApplicationState;
|
||||||
lOldWorkingDir := GetCurrentDirUTF8;
|
lOldWorkingDir := GetCurrentDirUTF8;
|
||||||
|
Loading…
Reference in New Issue
Block a user