From: Bernhard Übelacker <bernhardu@mailbox.org> --- dlls/comctl32/tests/syslink.c | 2 -- dlls/comctl32_v6/syslink.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/comctl32/tests/syslink.c b/dlls/comctl32/tests/syslink.c index 5728117b884..54efa95e1a2 100644 --- a/dlls/comctl32/tests/syslink.c +++ b/dlls/comctl32/tests/syslink.c @@ -341,10 +341,8 @@ static void test_LM_GETIDEALSIZE(void) win_skip("LM_GETIDEALSIZE is not supported.\n"); else { - todo_wine ok(sz.cx >= 1, "Unexpected ideal width, %ld >= 1.\n", sz.cx); ok(sz.cx < 100, "Unexpected ideal width, %ld < 100.\n", sz.cx); - todo_wine ok(sz.cy >= 1, "Unexpected ideal height, %ld < 100.\n", sz.cy); ok(sz.cy < 100, "Unexpected ideal height, %ld < 100.\n", sz.cy); ok(sz.cy == ret, "Unexpected ideal height, %ld.\n", sz.cy); diff --git a/dlls/comctl32_v6/syslink.c b/dlls/comctl32_v6/syslink.c index 5f866ba9a61..e32b064dc4d 100644 --- a/dlls/comctl32_v6/syslink.c +++ b/dlls/comctl32_v6/syslink.c @@ -1227,7 +1227,7 @@ static VOID SYSLINK_Render (const SYSLINK_INFO *infoPtr, HDC hdc, PRECT pRect) SkipChars++; n--; } - while(n > 0 && (*tx) == infoPtr->BreakChar) + while(n > 1 && (*tx) == infoPtr->BreakChar) { tx++; SkipChars++; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11623