[PATCH] comctl32: Avoid using the comma operator
Michael Stefaniuc
mstefani at winehq.org
Thu Feb 21 13:35:33 CST 2019
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/comctl32/imagelist.c | 4 ++--
dlls/comctl32/listbox.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index 3e3067300f..9a6ea3bbff 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -1002,7 +1002,7 @@ ImageList_InternalDragDraw (HDC hdc, INT x, INT y)
imldp.cbSize = sizeof(imldp);
imldp.himl = InternalDrag.himl;
imldp.i = 0;
- imldp.hdcDst = hdc,
+ imldp.hdcDst = hdc;
imldp.x = x;
imldp.y = y;
imldp.rgbBk = CLR_DEFAULT;
@@ -1236,7 +1236,7 @@ ImageList_DrawEx (HIMAGELIST himl, INT i, HDC hdc, INT x, INT y,
imldp.cbSize = sizeof(imldp);
imldp.himl = himl;
imldp.i = i;
- imldp.hdcDst = hdc,
+ imldp.hdcDst = hdc;
imldp.x = x;
imldp.y = y;
imldp.cx = dx;
diff --git a/dlls/comctl32/listbox.c b/dlls/comctl32/listbox.c
index cbe57f2616..180c09b6f1 100644
--- a/dlls/comctl32/listbox.c
+++ b/dlls/comctl32/listbox.c
@@ -1173,7 +1173,7 @@ static void LISTBOX_NCPaint( LB_DESCR *descr, HRGN region )
if (!theme || !(exstyle & WS_EX_CLIENTEDGE))
return;
- cxEdge = GetSystemMetrics(SM_CXEDGE),
+ cxEdge = GetSystemMetrics(SM_CXEDGE);
cyEdge = GetSystemMetrics(SM_CYEDGE);
GetWindowRect(descr->self, &r);
--
2.20.1
More information about the wine-devel
mailing list