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
8dddd895
Commit
8dddd895
authored
Apr 23, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Ignore query and hash part in file protocol URL.
parent
9ee7e42d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
file.c
dlls/urlmon/file.c
+10
-2
No files found.
dlls/urlmon/file.c
View file @
8dddd895
...
...
@@ -99,8 +99,7 @@ static HRESULT WINAPI FileProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
DWORD
grfBINDF
=
0
;
LARGE_INTEGER
size
;
DWORD
len
;
LPWSTR
url
,
mime
=
NULL
;
LPCWSTR
file_name
;
LPWSTR
url
,
mime
=
NULL
,
file_name
;
WCHAR
null_char
=
0
;
BOOL
first_call
=
FALSE
;
HRESULT
hres
;
...
...
@@ -136,6 +135,8 @@ static HRESULT WINAPI FileProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
IInternetProtocolSink_ReportProgress
(
pOIProtSink
,
BINDSTATUS_DIRECTBIND
,
NULL
);
if
(
!
This
->
file
)
{
WCHAR
*
ptr
;
first_call
=
TRUE
;
IInternetProtocolSink_ReportProgress
(
pOIProtSink
,
BINDSTATUS_SENDINGREQUEST
,
&
null_char
);
...
...
@@ -146,6 +147,13 @@ static HRESULT WINAPI FileProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
if
(
*
file_name
==
'/'
)
file_name
++
;
for
(
ptr
=
file_name
;
*
ptr
;
ptr
++
)
{
if
(
*
ptr
==
'?'
||
*
ptr
==
'#'
)
{
*
ptr
=
0
;
break
;
}
}
This
->
file
=
CreateFileW
(
file_name
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
...
...
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