Michael Stefaniuc : comctl32: Avoid using the comma operator.

Alexandre Julliard julliard at winehq.org
Fri Feb 22 15:22:10 CST 2019


Module: wine
Branch: master
Commit: e4f66b0483cdb37f069ea64eb666d19c62a89b84
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e4f66b0483cdb37f069ea64eb666d19c62a89b84

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Feb 21 20:35:33 2019 +0100

comctl32: Avoid using the comma operator.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard 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 3e30673..9a6ea3b 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 cbe57f2..180c09b 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);




More information about the wine-cvs mailing list