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
5d93b6ed
Commit
5d93b6ed
authored
Jan 29, 2002
by
Guy L. Albertelli
Committed by
Alexandre Julliard
Jan 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PathCreateFromUrl{A|W} to return the corrrect error code in all
cases.
parent
ce4f093d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
path.c
dlls/shlwapi/path.c
+16
-4
No files found.
dlls/shlwapi/path.c
View file @
5d93b6ed
...
...
@@ -1110,7 +1110,7 @@ BOOL WINAPI PathIsSameRootA(LPCSTR lpszPath1, LPCSTR lpszPath2)
{
if
(
lpszPath1
[
pos
]
==
'\\'
)
bsfound
++
;
if
(
bsfound
==
2
)
return
TRUE
;
pos
++
;
/*
fixme
: use CharNext*/
pos
++
;
/*
FIXME
: use CharNext*/
}
return
(
lpszPath1
[
pos
]
==
lpszPath2
[
pos
]);
}
...
...
@@ -1142,7 +1142,7 @@ BOOL WINAPI PathIsSameRootW(LPCWSTR lpszPath1, LPCWSTR lpszPath2)
{
if
(
lpszPath1
[
pos
]
==
'\\'
)
bsfound
++
;
if
(
bsfound
==
2
)
return
TRUE
;
pos
++
;
/*
fixme
: use CharNext*/
pos
++
;
/*
FIXME
: use CharNext*/
}
return
(
lpszPath1
[
pos
]
==
lpszPath2
[
pos
]);
}
...
...
@@ -1773,9 +1773,15 @@ HRESULT WINAPI PathCreateFromUrlA(
LPDWORD
pcchPath
,
DWORD
dwFlags
)
{
/* extracts thing prior to : in pszURL and checks against:
* https
* shell
* local
* about - if match returns E_INVALIDARG
*/
FIXME
(
"%s %p %p 0x%08lx
\n
"
,
pszUrl
,
pszPath
,
pcchPath
,
dwFlags
);
return
S_OK
;
return
E_INVALIDARG
;
}
/*************************************************************************
...
...
@@ -1787,9 +1793,15 @@ HRESULT WINAPI PathCreateFromUrlW(
LPDWORD
pcchPath
,
DWORD
dwFlags
)
{
/* extracts thing prior to : in pszURL and checks against:
* https
* shell
* local
* about - if match returns E_INVALIDARG
*/
FIXME
(
"%s %p %p 0x%08lx
\n
"
,
debugstr_w
(
pszUrl
),
pszPath
,
pcchPath
,
dwFlags
);
return
S_OK
;
return
E_INVALIDARG
;
}
/*************************************************************************
...
...
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