Juan Lang : wininet: Trace the cache file entry' s local file name rather than the passed-in cache entry info' s local file name, as the caller may have passed a NULL pointer.

Alexandre Julliard julliard at winehq.org
Wed Oct 8 08:32:36 CDT 2008


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Fri Oct  3 10:44:22 2008 -0700

wininet: Trace the cache file entry's local file name rather than the passed-in cache entry info's local file name, as the caller may have passed a NULL pointer.

---

 dlls/wininet/urlcache.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c
index 9705769..ce9e7d4 100644
--- a/dlls/wininet/urlcache.c
+++ b/dlls/wininet/urlcache.c
@@ -1552,7 +1552,7 @@ BOOL WINAPI GetUrlCacheEntryInfoA(
             SetLastError(error);
             return FALSE;
         }
-        TRACE("Local File Name: %s\n", debugstr_a(lpCacheEntryInfo->lpszLocalFileName));
+        TRACE("Local File Name: %s\n", debugstr_a((LPCSTR)pUrlEntry + pUrlEntry->dwOffsetLocalName));
     }
 
     URLCacheContainer_UnlockIndex(pContainer, pHeader);
@@ -1633,7 +1633,7 @@ BOOL WINAPI GetUrlCacheEntryInfoW(LPCWSTR lpszUrl,
             SetLastError(error);
             return FALSE;
         }
-        TRACE("Local File Name: %s\n", debugstr_w(lpCacheEntryInfo->lpszLocalFileName));
+        TRACE("Local File Name: %s\n", debugstr_a((LPCSTR)pUrlEntry + pUrlEntry->dwOffsetLocalName));
     }
 
     URLCacheContainer_UnlockIndex(pContainer, pHeader);
@@ -1875,7 +1875,7 @@ BOOL WINAPI RetrieveUrlCacheEntryFileA(
         SetLastError(error);
         return FALSE;
     }
-    TRACE("Local File Name: %s\n", lpCacheEntryInfo->lpszLocalFileName);
+    TRACE("Local File Name: %s\n", debugstr_a((LPCSTR)pUrlEntry + pUrlEntry->dwOffsetLocalName));
 
     URLCacheContainer_UnlockIndex(pContainer, pHeader);
 
@@ -1968,7 +1968,7 @@ BOOL WINAPI RetrieveUrlCacheEntryFileW(
         SetLastError(error);
         return FALSE;
     }
-    TRACE("Local File Name: %s\n", debugstr_w(lpCacheEntryInfo->lpszLocalFileName));
+    TRACE("Local File Name: %s\n", debugstr_a((LPCSTR)pUrlEntry + pUrlEntry->dwOffsetLocalName));
 
     URLCacheContainer_UnlockIndex(pContainer, pHeader);
 
@@ -3234,7 +3234,7 @@ BOOL WINAPI FindNextUrlCacheEntryA(
                     SetLastError(error);
                     return FALSE;
                 }
-                TRACE("Local File Name: %s\n", debugstr_a(lpNextCacheEntryInfo->lpszLocalFileName));
+                TRACE("Local File Name: %s\n", debugstr_a((LPCSTR)pUrlEntry + pUrlEntry->dwOffsetLocalName));
 
                 /* increment the current index so that next time the function
                  * is called the next entry is returned */




More information about the wine-cvs mailing list