From b4c7499883dcdb84840f9170b6951909055c6529 Mon Sep 17 00:00:00 2001
From: Patrik Stridvall <ps@leissner.se>
Date: Fri, 4 Aug 2000 21:08:01 +0000
Subject: [PATCH] Fixed some warnings.

---
 debugger/stack.c         | 2 +-
 dlls/comctl32/listview.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/debugger/stack.c b/debugger/stack.c
index 1eb45aced81..0c593892a22 100644
--- a/debugger/stack.c
+++ b/debugger/stack.c
@@ -207,7 +207,7 @@ void DEBUG_BackTrace(BOOL noisy)
              * available at SS:ESP, so let's try to retrieve it */
             tmp.seg = ss;
             tmp.off = DEBUG_context.Esp;
-            if (DEBUG_READ_MEM(DEBUG_ToLinear(&tmp), &code.off, sizeof(code.off))) {
+            if (DEBUG_READ_MEM((void *)DEBUG_ToLinear(&tmp), &code.off, sizeof(code.off))) {
                 DEBUG_ForceFrame( &addr, &code, ++frameno, 32, noisy, ", null call assumed" );
             }
         }
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index a78ddc93377..d62d690b3a8 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -1938,7 +1938,7 @@ static BOOL LISTVIEW_SetItem(HWND hwnd, LPLVITEMA lpLVItem)
     if (lpLVItem->iSubItem == 0)
     {
       hdpaSubItems = (HDPA)DPA_GetPtr(infoPtr->hdpaItems, lpLVItem->iItem);
-      if (hdpaSubItems != NULL && hdpaSubItems != -1)
+      if (hdpaSubItems != NULL && hdpaSubItems != (HDPA)-1)
       {
         lpItem = (LISTVIEW_ITEM *)DPA_GetPtr(hdpaSubItems, lpLVItem->iSubItem);
         if (lpItem != NULL)
@@ -5088,7 +5088,7 @@ static LRESULT LISTVIEW_GetStringWidthA(HWND hwnd, LPCSTR lpszText)
   HDC hdc;
 
   ZeroMemory(&stringSize, sizeof(SIZE));
-  if (lpszText != NULL && lpszText != -1)
+  if (lpszText != NULL && lpszText != (LPCSTR)-1)
   {
     hFont = infoPtr->hFont ? infoPtr->hFont : infoPtr->hDefaultFont;
     hdc = GetDC(hwnd);
-- 
GitLab