Commit e833248d authored by Carl Sopchak's avatar Carl Sopchak Committed by Alexandre Julliard

Return empty string on error in WM_GETTEXT.

parent 36350565
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment