advapi32: Fix comparisons of unsigned expressions with zero (Try 2)

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Dec 9 12:02:01 CST 2006


Changelog:
    advapi32: Fix comparisons of unsigned expressions with zero.

diff -urN a/dlls/advapi32/service.c b/dlls/advapi32/service.c
--- a/dlls/advapi32/service.c	2006-10-12 21:30:35.000000000 +0100
+++ b/dlls/advapi32/service.c	2006-12-08 20:30:46.000000000 +0000
@@ -1659,8 +1659,8 @@
     struct sc_service *hsvc;
     HKEY hKey;
     CHAR str_buffer[ MAX_PATH ];
-    LONG r;
-    DWORD type, val, sz, total, n;
+    LONG r, n;
+    DWORD type, val, sz, total;
     LPSTR p;
 
     TRACE("%p %p %d %p\n", hService, lpServiceConfig,
@@ -1795,8 +1795,8 @@
                      DWORD cbBufSize, LPDWORD pcbBytesNeeded)
 {
     WCHAR str_buffer[ MAX_PATH ];
-    LONG r;
-    DWORD type, val, sz, total, n;
+    LONG r, n;
+    DWORD type, val, sz, total;
     LPBYTE p;
     HKEY hKey;
     struct sc_service *hsvc;



More information about the wine-patches mailing list