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
1327ae0c
Commit
1327ae0c
authored
Sep 02, 2009
by
Vladimir Pankratov
Committed by
Alexandre Julliard
Sep 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Handle NULL parameter.
parent
d24a5a74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
misc.c
dlls/urlmon/tests/misc.c
+9
-0
urlmon_main.c
dlls/urlmon/urlmon_main.c
+3
-3
No files found.
dlls/urlmon/tests/misc.c
View file @
1327ae0c
...
...
@@ -1326,6 +1326,14 @@ static void test_MkParseDisplayNameEx(void)
IBindCtx_Release
(
bctx
);
}
static
void
test_IsValidURL
(
void
)
{
HRESULT
hr
;
hr
=
IsValidURL
(
NULL
,
0
,
0
);
ok
(
hr
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
hr
);
}
START_TEST
(
misc
)
{
OleInitialize
(
NULL
);
...
...
@@ -1345,6 +1353,7 @@ START_TEST(misc)
test_UrlMkGetSessionOption
();
test_user_agent
();
test_MkParseDisplayNameEx
();
test_IsValidURL
();
OleUninitialize
();
}
dlls/urlmon/urlmon_main.c
View file @
1327ae0c
...
...
@@ -393,10 +393,10 @@ HRESULT WINAPI DllRegisterServerEx(void)
HRESULT
WINAPI
IsValidURL
(
LPBC
pBC
,
LPCWSTR
szURL
,
DWORD
dwReserved
)
{
FIXME
(
"(%p, %s, %d): stub
\n
"
,
pBC
,
debugstr_w
(
szURL
),
dwReserved
);
if
(
pBC
!=
NULL
||
dwReserved
!=
0
)
if
(
pBC
||
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