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
901e7c66
Commit
901e7c66
authored
Jul 11, 2005
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jul 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
URLMonikerImpl_BindToStorage: Don't use a HeapAllocated pointer for
other purposes.
parent
af4009d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
umon.c
dlls/urlmon/umon.c
+8
-8
No files found.
dlls/urlmon/umon.c
View file @
901e7c66
...
...
@@ -598,7 +598,7 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
if
(
SUCCEEDED
(
hres
))
{
WCHAR
*
urlcopy
,
*
tmpwc
;
URL_COMPONENTSW
url
;
WCHAR
*
host
,
*
path
,
*
user
,
*
pass
;
WCHAR
*
host
,
*
path
,
*
partial_path
,
*
user
,
*
pass
;
DWORD
lensz
=
sizeof
(
bind
->
expected_size
);
DWORD
dwService
=
0
;
BOOL
bSuccess
;
...
...
@@ -797,9 +797,9 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
break
;
case
INTERNET_SCHEME_FILE
:
path
=
bind
->
URLName
+
5
;
/* Skip the "file:" part */
if
((
pa
th
[
0
]
!=
'/'
&&
path
[
0
]
!=
'\\'
)
||
(
pa
th
[
1
]
!=
'/'
&&
path
[
1
]
!=
'\\'
))
pa
rtial_pa
th
=
bind
->
URLName
+
5
;
/* Skip the "file:" part */
if
((
pa
rtial_path
[
0
]
!=
'/'
&&
partial_
path
[
0
]
!=
'\\'
)
||
(
pa
rtial_path
[
1
]
!=
'/'
&&
partial_
path
[
1
]
!=
'\\'
))
{
hres
=
E_FAIL
;
}
...
...
@@ -807,10 +807,10 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
{
HANDLE
h
;
path
+=
2
;
if
(
pa
th
[
0
]
==
'/'
||
path
[
0
]
==
'\\'
)
++
path
;
h
=
CreateFileW
(
path
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
pa
rtial_pa
th
+=
2
;
if
(
pa
rtial_path
[
0
]
==
'/'
||
partial_
path
[
0
]
==
'\\'
)
++
pa
rtial_pa
th
;
h
=
CreateFileW
(
pa
rtial_pa
th
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
if
(
h
==
(
HANDLE
)
HFILE_ERROR
)
{
hres
=
HRESULT_FROM_WIN32
(
GetLastError
());
...
...
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