Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- dlls/user32/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c index 6f8f412..0c1237d 100644 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c @@ -2346,7 +2346,7 @@ static void EDIT_SetRectNP(EDITSTATE *es, const RECT *rc) INT bw, bh; ExStyle = GetWindowLongPtrW(es->hwndSelf, GWL_EXSTYLE); - CopyRect(&es->format_rect, rc); + if (rc) es->format_rect = *rc; if (ExStyle & WS_EX_CLIENTEDGE) { es->format_rect.left++;