mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 12:00:57 +02:00
* Prevent a crash of the tw2423 test on some versions of Windows.
This commit is contained in:
parent
fca357e898
commit
daa05f19cb
@ -6,6 +6,7 @@
|
||||
{$mode objfpc}
|
||||
{$endif}
|
||||
{ $define BugAvoid}
|
||||
uses windows;
|
||||
type
|
||||
pVariant=^Variant;
|
||||
function ShowHTMLDialog(const hwndParent:longint;const pmk:pointer;
|
||||
@ -103,5 +104,8 @@ begin
|
||||
|
||||
{$endif}
|
||||
|
||||
// Create a dummy main window to prevent a crash in ShowHTMLDialog() on some versions of Windows
|
||||
CreateWindow('STATIC', 'Test', WS_POPUP, 0, 0, 200, 200, 0, 0, HInstance, nil);
|
||||
|
||||
ShowHTMLDialog(0,pmk,InParam,nil,nil);
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user