win32 interface: fixed range check error

git-svn-id: trunk@15999 -
This commit is contained in:
vincents 2008-08-08 14:05:39 +00:00
parent b7bba11457
commit cedc3fdcad

View File

@ -101,7 +101,7 @@ begin
Windows.SetFocus(BuddyWindow);
// don't select text in edit, if user clicked on the up down and the edit
// was already focused
if WPARAM<>BuddyWindow then ;
if HWND(WPARAM)<>BuddyWindow then ;
// for LCL controls this is done in win32callback.inc
Windows.SendMessage(BuddyWindow, EM_SETSEL, 0, -1);
end;