LCL, Win32: fix range check error with newly started Windows. Issue #20321, patch from Benito van der Zander

git-svn-id: trunk@32464 -
This commit is contained in:
juha 2011-09-23 07:41:10 +00:00
parent e0f7806aca
commit 4d3cc5e247

View File

@ -294,7 +294,10 @@ const
initialization
{ initialize mousedownclick to far before double click time }
MouseDownTime := GetTickCount - 5000;
if GetTickCount > 5000 then
MouseDownTime := GetTickCount - 5000
else
MouseDownTime := 0;
{$IFDEF WindowsUnicodeSupport}
SystemCharSetIsUTF8:=true;
{$ELSE}