Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
daca693f
Commit
daca693f
authored
Jun 06, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Don't pass query part of URL to CreateUrlCacheEntryW.
parent
f00670df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
umstream.c
dlls/urlmon/umstream.c
+13
-15
No files found.
dlls/urlmon/umstream.c
View file @
daca693f
...
...
@@ -49,32 +49,30 @@ HRESULT UMCreateStreamOnCacheFile(LPCWSTR pszURL,
{
IUMCacheStream
*
ucstr
;
HANDLE
handle
;
LPWSTR
ext
;
LPCWSTR
c
;
LPCWSTR
eloc
=
0
;
DWORD
size
;
LPWSTR
url
,
c
,
ext
=
NULL
;
HRESULT
hr
;
for
(
c
=
pszURL
;
*
c
&&
*
c
!=
'#'
&&
*
c
!=
'?'
;
++
c
)
size
=
(
strlenW
(
pszURL
)
+
1
)
*
sizeof
(
WCHAR
);
url
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
memcpy
(
url
,
pszURL
,
size
);
for
(
c
=
url
;
*
c
&&
*
c
!=
'#'
&&
*
c
!=
'?'
;
++
c
)
{
if
(
*
c
==
'.'
)
eloc
=
c
+
1
;
else
if
(
*
c
==
'/'
||
*
c
==
'\\
'
)
eloc
=
0
;
ext
=
c
+
1
;
else
if
(
*
c
==
'/
'
)
ext
=
NULL
;
}
if
(
!
eloc
)
eloc
=
c
;
ext
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
WCHAR
)
*
(
c
-
eloc
+
1
));
memcpy
(
ext
,
eloc
,
sizeof
(
WCHAR
)
*
(
c
-
eloc
));
ext
[
c
-
eloc
]
=
0
;
*
c
=
0
;
if
(
!
CreateUrlCacheEntryW
(
pszURL
,
dwSize
,
ext
,
pszFileName
,
0
))
if
(
!
CreateUrlCacheEntryW
(
url
,
dwSize
,
ext
,
pszFileName
,
0
))
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
else
hr
=
0
;
HeapFree
(
GetProcessHeap
(),
0
,
ext
);
HeapFree
(
GetProcessHeap
(),
0
,
url
);
if
(
hr
)
return
hr
;
...
...
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