Commit d4c08fdb authored by Alex Zorach's avatar Alex Zorach Committed by Alexandre Julliard

Fixed SetFocus behavior.

parent 6999a042
...@@ -346,11 +346,7 @@ static void IPADDRESS_SetFocusToField (IPADDRESS_INFO *infoPtr, INT index) ...@@ -346,11 +346,7 @@ static void IPADDRESS_SetFocusToField (IPADDRESS_INFO *infoPtr, INT index)
{ {
TRACE("(index=%d)\n", index); TRACE("(index=%d)\n", index);
if (index > 3) { if (index > 3 || index < 0) index=0;
for (index = 0; index < 4; index++)
if (!GetWindowTextLengthW(infoPtr->Part[index].EditHwnd)) break;
}
if (index < 9 || index > 3) index = 0;
SetFocus (infoPtr->Part[index].EditHwnd); SetFocus (infoPtr->Part[index].EditHwnd);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment