[PATCH 1/2] wininet: Update structs with more information in preparation for implementation of more functionality.
Morten Rønne
morten.roenne at tdcadsl.dk
Mon Apr 16 15:00:18 CDT 2012
-------------- next part --------------
>From 106b09515f1a422761889e82a6e535b89855b316 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Morten=20R=C3=B8nne?= <morten.roenne at tdcadsl.dk>
Date: Mon, 16 Apr 2012 21:13:28 +0200
Subject: [PATCH 1/2] wininet: Update structs with more information in
preparation for implementation of more functionality.
---
dlls/wininet/urlcache.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c
index 81b9fda..d4ad98f 100644
--- a/dlls/wininet/urlcache.c
+++ b/dlls/wininet/urlcache.c
@@ -106,9 +106,9 @@ typedef struct _URL_CACHEFILE_ENTRY
WORD wExpiredTime; /* expire time in dos format */
DWORD dwUnknown1; /* usually zero */
ULARGE_INTEGER size; /* see INTERNET_CACHE_ENTRY_INFO::dwSizeLow/High */
- DWORD dwUnknown2; /* usually zero */
+ DWORD dwGroupOffset; /* Offset to group or list of groups */
DWORD dwExemptDelta; /* see INTERNET_CACHE_ENTRY_INFO::dwExemptDelta */
- DWORD dwUnknown3; /* usually 0x60 */
+ DWORD dwExtraSize; /* Size after CACHEFILE_ENTRY */
DWORD dwOffsetUrl; /* offset of start of url from start of entry */
BYTE CacheDir; /* index of cache directory this url is stored in */
BYTE Unknown4; /* usually zero */
@@ -166,7 +166,10 @@ typedef struct _URLCACHE_HEADER
ULARGE_INTEGER CacheUsage;
ULARGE_INTEGER ExemptUsage;
DWORD DirectoryCount; /* number of directory_data's */
- DIRECTORY_DATA directory_data[1]; /* first directory entry */
+ DIRECTORY_DATA directory_data[32]; /* first directory entry */
+ DWORD HeaderData[32];
+ DWORD dwUnknown2;
+ DWORD AllocationTable[0xF6C];
} URLCACHE_HEADER, *LPURLCACHE_HEADER;
typedef const URLCACHE_HEADER *LPCURLCACHE_HEADER;
@@ -2841,11 +2844,11 @@ static BOOL CommitUrlCacheEntryInternal(
URLCache_FileTimeToDosDateTime(&ExpireTime, &pUrlEntry->wExpiredDate, &pUrlEntry->wExpiredTime);
pUrlEntry->wUnknownDate = pUrlEntry->wLastSyncDate;
pUrlEntry->wUnknownTime = pUrlEntry->wLastSyncTime;
+ pUrlEntry->dwGroupOffset = 0;
+ pUrlEntry->dwExtraSize = sizeof(URL_CACHEFILE_ENTRY) - sizeof(CACHEFILE_ENTRY);
/*** Unknowns ***/
pUrlEntry->dwUnknown1 = 0;
- pUrlEntry->dwUnknown2 = 0;
- pUrlEntry->dwUnknown3 = 0x60;
pUrlEntry->Unknown4 = 0;
pUrlEntry->wUnknown5 = 0x1010;
pUrlEntry->dwUnknown7 = 0;
--
1.7.5.4
More information about the wine-patches
mailing list