Andrew Talbot : oledlg: Avoid signed-unsigned integer comparisons.

Alexandre Julliard julliard at winehq.org
Mon Feb 25 14:33:45 CST 2013


Module: wine
Branch: master
Commit: 10e9e1531a3e62c4b6c7574643eb1cbd009ae451
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=10e9e1531a3e62c4b6c7574643eb1cbd009ae451

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Sat Feb 23 22:49:07 2013 +0000

oledlg: Avoid signed-unsigned integer comparisons.

---

 dlls/oledlg/pastespl.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dlls/oledlg/pastespl.c b/dlls/oledlg/pastespl.c
index 1dba9583..f136438 100644
--- a/dlls/oledlg/pastespl.c
+++ b/dlls/oledlg/pastespl.c
@@ -85,7 +85,9 @@ static void dump_ps_flags(DWORD flags)
 
 static void dump_pastespecial(const OLEUIPASTESPECIALW *ps)
 {
-    UINT i;
+    INT i;
+    UINT j;
+
     dump_ps_flags(ps->dwFlags);
     TRACE("hwnd %p caption %s hook %p custdata %lx\n",
           ps->hWndOwner, debugstr_w(ps->lpszCaption), ps->lpfnHook, ps->lCustData);
@@ -110,8 +112,8 @@ static void dump_pastespecial(const OLEUIPASTESPECIALW *ps)
     }
     for(i = 0; i < ps->cLinkTypes; i++)
         TRACE("arrLinkTypes[%d] %08x\n", i, ps->arrLinkTypes[i]);
-    for(i = 0; i < ps->cClsidExclude; i++)
-        TRACE("lpClsidExclude[%d] %s\n", i, debugstr_guid(&ps->lpClsidExclude[i]));
+    for(j = 0; j < ps->cClsidExclude; j++)
+        TRACE("lpClsidExclude[%u] %s\n", j, debugstr_guid(&ps->lpClsidExclude[j]));
 
 }
 




More information about the wine-cvs mailing list