comctl32: Enable selection overwriting in IP Address control.

This commit is contained in:
Nikolay Sivov 2009-04-01 17:43:08 -04:00 committed by Alexandre Julliard
parent a2b7aafdae
commit 4902dd9801
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ IPADDRESS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return return_val; return return_val;
} else if (len == 3 && startsel==endsel && endsel==len) } else if (len == 3 && startsel==endsel && endsel==len)
IPADDRESS_GotoNextField (infoPtr, index, POS_SELALL); IPADDRESS_GotoNextField (infoPtr, index, POS_SELALL);
else if (len < 3) break; else if (len < 3 || startsel != endsel) break;
} else if(c == '.' || c == ' ') { } else if(c == '.' || c == ' ') {
if(len && startsel==endsel && startsel != 0) { if(len && startsel==endsel && startsel != 0) {
IPADDRESS_GotoNextField(infoPtr, index, POS_SELALL); IPADDRESS_GotoNextField(infoPtr, index, POS_SELALL);