mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 06:35:01 +00:00
Return empty string on error in WM_GETTEXT.
This commit is contained in:
parent
3635056577
commit
e833248d58
|
@ -1603,6 +1603,15 @@ static LRESULT COMBO_GetText( LPHEADCOMBO lphc, INT N, LPARAM lParam, BOOL unico
|
|||
return (LRESULT)n;
|
||||
}
|
||||
}
|
||||
/* LB_GETCURSEL returned LB_ERR - truncate string, return zero */
|
||||
if (unicode)
|
||||
{
|
||||
LPWSTR lpText = (LPWSTR)lParam;
|
||||
lpText[0] = '\0';
|
||||
} else {
|
||||
LPSTR lpText = (LPSTR)lParam;
|
||||
lpText[0] = '\0';
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue