diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c index 9f11146b8c4..7cf11bf1904 100644 --- a/dlls/comctl32/rebar.c +++ b/dlls/comctl32/rebar.c @@ -2510,7 +2510,7 @@ REBAR_SetBandInfoT(REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam, BOOL bUnic else Str_SetPtrAtoW(&wstr, (LPSTR)lprbbi->lpText); - if (REBAR_strdifW(wstr, lprbbi->lpText)) { + if (REBAR_strdifW(wstr, lpBand->lpText)) { Free(lpBand->lpText); lpBand->lpText = wstr; bChanged = TRUE;