Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4254bdbf
Commit
4254bdbf
authored
Apr 05, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't reserve space for directory in URL cache entry.
parent
c9983b11
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
urlcache.c
dlls/wininet/urlcache.c
+3
-2
No files found.
dlls/wininet/urlcache.c
View file @
4254bdbf
...
...
@@ -2727,7 +2727,8 @@ static BOOL CommitUrlCacheEntryInternal(
goto
cleanup
;
}
lpszLocalFileName
+=
(
DIR_LENGTH
+
1
);
/* "1234WXYZ\" */
lpszLocalFileName
+=
DIR_LENGTH
+
1
;
pchLocalFileName
+=
DIR_LENGTH
+
1
;
}
dwBytesNeeded
=
DWORD_ALIGN
(
dwBytesNeeded
+
strlen
(
lpszUrlNameA
)
+
1
);
...
...
@@ -2800,7 +2801,7 @@ static BOOL CommitUrlCacheEntryInternal(
strcpy
((
LPSTR
)
pUrlEntry
+
pUrlEntry
->
dwOffsetUrl
,
lpszUrlNameA
);
if
(
dwOffsetLocalFileName
)
strcpy
((
LPSTR
)((
LPBYTE
)
pUrlEntry
+
dwOffsetLocalFileName
),
pchLocalFileName
+
DIR_LENGTH
+
1
);
strcpy
((
LPSTR
)((
LPBYTE
)
pUrlEntry
+
dwOffsetLocalFileName
),
pchLocalFileName
);
if
(
dwOffsetHeader
)
memcpy
((
LPBYTE
)
pUrlEntry
+
dwOffsetHeader
,
lpHeaderInfo
,
dwHeaderSize
);
if
(
dwOffsetFileExtension
)
...
...
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