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
2eec6b04
Commit
2eec6b04
authored
May 15, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
May 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Return correct errors in InternetOpenUrlW.
parent
f57360af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
internet.c
dlls/wininet/internet.c
+7
-0
internet.c
dlls/wininet/tests/internet.c
+8
-0
No files found.
dlls/wininet/internet.c
View file @
2eec6b04
...
...
@@ -2934,6 +2934,7 @@ HINTERNET WINAPI INTERNET_InternetOpenUrlW(LPWININETAPPINFOW hIC, LPCWSTR lpszUr
/* gopher doesn't seem to be implemented in wine, but it's supposed
* to be supported by InternetOpenUrlA. */
default:
INTERNET_SetLastError
(
ERROR_INTERNET_UNRECOGNIZED_SCHEME
);
break
;
}
...
...
@@ -2963,6 +2964,12 @@ HINTERNET WINAPI InternetOpenUrlW(HINTERNET hInternet, LPCWSTR lpszUrl,
dump_INTERNET_FLAGS
(
dwFlags
);
}
if
(
!
lpszUrl
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
goto
lend
;
}
hIC
=
(
LPWININETAPPINFOW
)
WININET_GetObject
(
hInternet
);
if
(
NULL
==
hIC
||
hIC
->
hdr
.
htype
!=
WH_HINIT
)
{
INTERNET_SetLastError
(
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
);
...
...
dlls/wininet/tests/internet.c
View file @
2eec6b04
...
...
@@ -143,6 +143,14 @@ static void test_null(void)
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"wrong error
\n
"
);
ok
(
hc
==
NULL
,
"connect failed
\n
"
);
hc
=
InternetOpenUrlW
(
hi
,
NULL
,
NULL
,
0
,
0
,
0
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"wrong error
\n
"
);
ok
(
hc
==
NULL
,
"connect failed
\n
"
);
hc
=
InternetOpenUrlW
(
hi
,
szServer
,
NULL
,
0
,
0
,
0
);
ok
(
GetLastError
()
==
ERROR_INTERNET_UNRECOGNIZED_SCHEME
,
"wrong error
\n
"
);
ok
(
hc
==
NULL
,
"connect failed
\n
"
);
InternetCloseHandle
(
hi
);
}
...
...
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