[1/3] comctl32: Enable selection overwriting in IP Address control

Nikolay Sivov bunglehead at gmail.com
Wed Apr 1 17:00:13 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=6966

Changelog:
   - Enable selection overwriting in IP Address control

>From 1ea725b291ca3ee12e6bd6ef2fc3aadb3ea06991 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Wed, 1 Apr 2009 17:43:08 -0400
Subject: Enable selection overwriting in IP Address control

---
 dlls/comctl32/ipaddress.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/ipaddress.c b/dlls/comctl32/ipaddress.c
index e5631a2..a90f6e9 100644
--- a/dlls/comctl32/ipaddress.c
+++ b/dlls/comctl32/ipaddress.c
@@ -508,7 +508,7 @@ IPADDRESS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 		    return return_val;
 		} else if (len == 3 && startsel==endsel && endsel==len)
 		    IPADDRESS_GotoNextField (infoPtr, index, POS_SELALL);
-		else if (len < 3) break;
+		else if (len < 3 || startsel != endsel) break;
 	    } else if(c == '.' || c == ' ') {
 		if(len && startsel==endsel && startsel != 0) {
 		    IPADDRESS_GotoNextField(infoPtr, index, POS_SELALL);
-- 
1.5.6.5







More information about the wine-patches mailing list