mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 20:50:42 +02:00
tests: fixed SetWindowLong test
git-svn-id: trunk@14477 -
This commit is contained in:
parent
1bbd116730
commit
e9770b180a
@ -1,5 +1,4 @@
|
|||||||
{ %target=win32 }
|
{ %target=win32 }
|
||||||
{ %OPT=-Sew -vw }
|
|
||||||
|
|
||||||
uses
|
uses
|
||||||
windows;
|
windows;
|
||||||
@ -9,6 +8,7 @@ var
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
WindowHandle:=0;
|
WindowHandle:=0;
|
||||||
|
// the next code must compile but with a range check warning
|
||||||
SetWindowLong(WindowHandle, GWL_STYLE, WS_POPUP or WS_CLIPCHILDREN);
|
SetWindowLong(WindowHandle, GWL_STYLE, WS_POPUP or WS_CLIPCHILDREN);
|
||||||
halt(0);
|
halt(0);
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user