user: Fix dropdown combo creation when there is no space for an edit control.

This commit is contained in:
Phil Krylov 2006-01-09 18:41:33 +01:00 committed by Alexandre Julliard
parent b75db2d9de
commit a2f883484f
1 changed files with 4 additions and 0 deletions

View File

@ -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);