- made the MIDI sequencer error message much better for confused users
to be found on #WineHQ
- use strerror instead of errno at important places
- got rid of HAVE_STRERROR macro
- removed some #include:s (hopefully I didn't break anything)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 3f9496c..e2c2e59 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -243,6 +243,9 @@
InternetCrackUrlA(lpszReferrer, 0, 0, &UrlComponents);
if (strlen(UrlComponents.lpszHostName))
lpwhr->lpszHostName = HEAP_strdupA(GetProcessHeap(), 0, UrlComponents.lpszHostName);
+ } else {
+ lpwhr->lpszHostName = HEAP_strdupA(GetProcessHeap(), 0,
+ lpwhs->lpszServerName);
}
if (hIC->lpfnStatusCB)
@@ -821,7 +824,7 @@
if (SOCKET_ERROR == result)
{
- WARN("Unable to connect to host: %d\n", errno);
+ WARN("Unable to connect to host (%s)\n", strerror(errno));
goto lend;
}