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
2ade49bf
Commit
2ade49bf
authored
Sep 17, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
url: Fixed wrong argument (Coverity).
parent
53a48942
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
path.c
dlls/shlwapi/tests/path.c
+6
-0
url_main.c
dlls/url/url_main.c
+1
-1
No files found.
dlls/shlwapi/tests/path.c
View file @
2ade49bf
...
...
@@ -738,6 +738,12 @@ static void test_PathCreateFromUrl(void)
DWORD
len
,
ret
;
WCHAR
ret_pathW
[
INTERNET_MAX_URL_LENGTH
];
WCHAR
*
pathW
,
*
urlW
;
static
const
char
url
[]
=
"http://www.winehq.org"
;
/* Check ret_path = NULL */
len
=
sizeof
(
url
);
ret
=
PathCreateFromUrlA
(
url
,
NULL
,
&
len
,
0
);
ok
(
ret
==
E_INVALIDARG
,
"got 0x%08lx expected E_INVALIDARG
\n
"
,
ret
);
for
(
i
=
0
;
i
<
sizeof
(
TEST_PATHFROMURL
)
/
sizeof
(
TEST_PATHFROMURL
[
0
]);
i
++
)
{
len
=
INTERNET_MAX_URL_LENGTH
;
...
...
dlls/url/url_main.c
View file @
2ade49bf
...
...
@@ -66,7 +66,7 @@ BOOL WINAPI InetIsOffline(void)
HRESULT
WINAPI
FileProtocolHandlerA
(
HWND
hWnd
,
LPCSTR
pszUrl
,
int
nShowCmd
)
{
LPSTR
pszPath
=
NULL
;
CHAR
pszPath
[
MAX_PATH
]
;
DWORD
size
=
MAX_PATH
;
HRESULT
createpath
=
PathCreateFromUrlA
(
pszUrl
,
pszPath
,
&
size
,
0
);
...
...
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