Bug 438901 - Style PASSWORD | READ_ONLY without BORDER displays plain
text password

Change-Id: I961c4ae2d94f3619f1aa94e5a761c16ca1fe1555
Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
index fba9850..f14815e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
@@ -2526,9 +2526,11 @@
 		* WM_CTRCOLOR to draw the theme background results in
 		* pixel corruption.  The fix is to use an ES_MULTILINE
 		* text control instead.
+		* Refer Bug438901:- ES_MULTILINE doesn't apply for:
+		* SWT.PASSWORD | SWT.READ_ONLY style combination.
 		*/
 		if ((style & SWT.READ_ONLY) != 0) {
-			if ((style & (SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL)) == 0) {
+			if ((style & (SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.PASSWORD)) == 0) {
 				if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) {
 					bits |= OS.ES_MULTILINE;
 				}