- Timestamp:
- Nov 7, 2001, 12:08:51 PM (24 years ago)
- Location:
- trunk/src/wininet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wininet/internet.c
r5419 r7291 1 /* $Id: internet.c,v 1. 5 2001-04-01 10:30:32 sandervlExp $1 /* $Id: internet.c,v 1.6 2001-11-07 11:08:13 phaller Exp $ 2 2 * 3 3 * Wininet … … 13 13 #include <debugtools.h> 14 14 #include <winerror.h> 15 #include <shlwapi.h> 15 16 #include <tchar.h> 16 17 #include <winsock.h> … … 217 218 BOOL WINAPI InternetGetConnectedState(LPDWORD lpdwStatus, DWORD dwReserved) 218 219 { 219 FIXME("Stub\n"); 220 return FALSE; 220 if (lpdwStatus) { 221 FIXME("always returning LAN connection.\n"); 222 *lpdwStatus = INTERNET_CONNECTION_LAN; 223 } 224 return TRUE; 221 225 } 222 226 … … 704 708 LPDWORD lpdwBufferLength, DWORD dwFlags) 705 709 { 706 BOOL bSuccess = FALSE;707 708 FIXME("Stub\n");709 710 if(lpszUrl)711 {712 strncpy(lpszBuffer, lpszUrl, *lpdwBufferLength);713 *lpdwBufferLength = strlen(lpszUrl);714 bSuccess = TRUE;715 }716 717 return bSuccess;710 HRESULT hr; 711 TRACE("%s %p %p %08lx\n",debugstr_a(lpszUrl), lpszBuffer, 712 lpdwBufferLength, dwFlags); 713 714 /* Flip this bit to correspond to URL_ESCAPE_UNSAFE */ 715 dwFlags ^= ICU_NO_ENCODE; 716 717 dwFlags |= 0x80000000; /* Don't know what this means */ 718 719 hr = UrlCanonicalizeA(lpszUrl, lpszBuffer, lpdwBufferLength, dwFlags); 720 721 return (hr == S_OK) ? TRUE : FALSE; 718 722 } 719 723 -
trunk/src/wininet/wininet.def
r7290 r7291 1 ; $Id: wininet.def,v 1. 4 2001-11-07 10:56:15phaller Exp $1 ; $Id: wininet.def,v 1.5 2001-11-07 11:08:14 phaller Exp $ 2 2 3 3 ; … … 10 10 IMPORTS 11 11 _UrlEscapeA@16 = SHLWAPI.691 12 _UrlCanonicalizeA@16 = SHLWAPI.683 12 13 13 14 EXPORTS
Note:
See TracChangeset
for help on using the changeset viewer.