[PATCH 3/9] comctl32/edit: Use assignment instead of CopyRect
Gabriel Ivăncescu
gabrielopcode at gmail.com
Fri Dec 28 06:22:59 CST 2018
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
dlls/comctl32/edit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comctl32/edit.c b/dlls/comctl32/edit.c
index 1f17276..0a234bd 100644
--- a/dlls/comctl32/edit.c
+++ b/dlls/comctl32/edit.c
@@ -2260,7 +2260,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++;
--
2.19.1
More information about the wine-devel
mailing list