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
6bbd0b87
Commit
6bbd0b87
authored
Mar 21, 2011
by
Dan Kegel
Committed by
Alexandre Julliard
Mar 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: IsValidUrl should not fail if first parameter is not NULL.
parent
570f446f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
misc.c
dlls/urlmon/tests/misc.c
+11
-0
urlmon_main.c
dlls/urlmon/urlmon_main.c
+2
-2
No files found.
dlls/urlmon/tests/misc.c
View file @
6bbd0b87
...
...
@@ -1454,9 +1454,20 @@ static void test_MkParseDisplayNameEx(void)
static
void
test_IsValidURL
(
void
)
{
HRESULT
hr
;
IBindCtx
*
bctx
=
NULL
;
hr
=
IsValidURL
(
NULL
,
0
,
0
);
ok
(
hr
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
hr
);
hr
=
IsValidURL
(
NULL
,
wszHttpWineHQ
,
0
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
CreateBindCtx
(
0
,
&
bctx
);
hr
=
IsValidURL
(
bctx
,
wszHttpWineHQ
,
0
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
IBindCtx_Release
(
bctx
);
}
START_TEST
(
misc
)
...
...
dlls/urlmon/urlmon_main.c
View file @
6bbd0b87
...
...
@@ -426,7 +426,7 @@ HRESULT WINAPI DllRegisterServerEx(void)
* Determines if a specified string is a valid URL.
*
* PARAMS
* pBC [I] ignored,
must
be NULL.
* pBC [I] ignored,
should
be NULL.
* szURL [I] string that represents the URL in question.
* dwReserved [I] reserved and must be zero.
*
...
...
@@ -442,7 +442,7 @@ HRESULT WINAPI IsValidURL(LPBC pBC, LPCWSTR szURL, DWORD dwReserved)
{
FIXME
(
"(%p, %s, %d): stub
\n
"
,
pBC
,
debugstr_w
(
szURL
),
dwReserved
);
if
(
pBC
||
dwReserved
||
!
szURL
)
if
(
dwReserved
||
!
szURL
)
return
E_INVALIDARG
;
return
S_OK
;
...
...
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