* Prevent a crash of the tw2423 test on some versions of Windows.

This commit is contained in:
Yuriy Sydorov 2021-09-11 19:53:50 +03:00
parent fca357e898
commit daa05f19cb

View File

@ -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.