Phil Krylov : user: Fix dropdown combo creation when there is no
space for an edit control.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jan 9 13:52:53 CST 2006
Module: wine
Branch: refs/heads/master
Commit: a2f883484f11f291d965ba543ec03a9626db943a
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a2f883484f11f291d965ba543ec03a9626db943a
Author: Phil Krylov <phil at newstar.rinet.ru>
Date: Mon Jan 9 18:41:33 2006 +0100
user: Fix dropdown combo creation when there is no space for an edit control.
---
dlls/user/combo.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/user/combo.c b/dlls/user/combo.c
index 4fab7f3..12d3121 100644
--- a/dlls/user/combo.c
+++ b/dlls/user/combo.c
@@ -435,6 +435,10 @@ static void CBCalcPlacement(
lprLB->right = lprLB->left + lphc->droppedWidth;
}
+ /* don't allow negative window width */
+ if (lprEdit->right < lprEdit->left)
+ lprEdit->right = lprEdit->left;
+
TRACE("\ttext\t= (%ld,%ld-%ld,%ld)\n",
lprEdit->left, lprEdit->top, lprEdit->right, lprEdit->bottom);
More information about the wine-cvs
mailing list