Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f0cd3de5
Commit
f0cd3de5
authored
13 years ago
by
Juan Lang
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Change type of cache limit and usage to large integers.
parent
22f920df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
urlcache.c
dlls/wininet/urlcache.c
+5
-10
No files found.
dlls/wininet/urlcache.c
View file @
f0cd3de5
...
...
@@ -154,12 +154,9 @@ typedef struct _URLCACHE_HEADER
DWORD
dwIndexCapacityInBlocks
;
DWORD
dwBlocksInUse
;
DWORD
dwUnknown1
;
DWORD
dwCacheLimitLow
;
DWORD
dwCacheLimitHigh
;
DWORD
dwCacheUsageLow
;
DWORD
dwCacheUsageHigh
;
DWORD
dwExemptUsageLow
;
DWORD
dwExemptUsageHigh
;
ULARGE_INTEGER
CacheLimit
;
ULARGE_INTEGER
CacheUsage
;
ULARGE_INTEGER
ExemptUsage
;
DWORD
DirectoryCount
;
/* number of directory_data's */
DIRECTORY_DATA
directory_data
[
1
];
/* first directory entry */
}
URLCACHE_HEADER
,
*
LPURLCACHE_HEADER
;
...
...
@@ -312,8 +309,7 @@ static DWORD URLCacheContainer_OpenIndex(URLCACHECONTAINER * pContainer)
pHeader
->
dwFileSize
=
dwFileSize
;
pHeader
->
dwIndexCapacityInBlocks
=
NEWFILE_NUM_BLOCKS
;
/* 127MB - taken from default for Windows 2000 */
pHeader
->
dwCacheLimitHigh
=
0
;
pHeader
->
dwCacheLimitLow
=
0x07ff5400
;
pHeader
->
CacheLimit
.
QuadPart
=
0x07ff5400
;
/* Copied from a Windows 2000 cache index */
pHeader
->
DirectoryCount
=
4
;
...
...
@@ -328,8 +324,7 @@ static DWORD URLCacheContainer_OpenIndex(URLCACHECONTAINER * pContainer)
(
BYTE
*
)
&
dw
,
&
len
)
==
ERROR_SUCCESS
&&
keytype
==
REG_DWORD
)
{
pHeader
->
dwCacheLimitHigh
=
(
dw
>>
22
);
pHeader
->
dwCacheLimitLow
=
dw
<<
10
;
pHeader
->
CacheLimit
.
QuadPart
=
(
ULONGLONG
)
dw
*
1024
;
}
RegCloseKey
(
key
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment