Alexandre Julliard : wininet: Use ~0u instead of ~0ul for DWORD values.

Alexandre Julliard julliard at winehq.org
Mon Jan 5 10:24:26 CST 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan  5 12:40:39 2009 +0100

wininet: Use ~0u instead of ~0ul for DWORD values.

---

 dlls/wininet/http.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 2b9b95f..d4ea219 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -1695,7 +1695,7 @@ static DWORD HTTP_ReadChunked(WININETHTTPREQW *req, void *buffer, DWORD size, DW
     {
         if (*read == size) break;
 
-        if (req->dwContentLength == ~0UL) /* new chunk */
+        if (req->dwContentLength == ~0u) /* new chunk */
         {
             buflen = sizeof(reply);
             if (!NETCON_getNextLine(&req->netConnection, reply, &buflen)) break;
@@ -1736,7 +1736,7 @@ static DWORD HTTP_ReadChunked(WININETHTTPREQW *req, void *buffer, DWORD size, DW
         if (req->dwContentRead == req->dwContentLength) /* chunk complete */
         {
             req->dwContentRead = 0;
-            req->dwContentLength = ~0UL;
+            req->dwContentLength = ~0u;
 
             buflen = sizeof(reply);
             if (!NETCON_getNextLine(&req->netConnection, reply, &buflen))




More information about the wine-cvs mailing list