Changeset 7291 for trunk/src


Ignore:
Timestamp:
Nov 7, 2001, 12:08:51 PM (24 years ago)
Author:
phaller
Message:

.

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 sandervl Exp $
     1/* $Id: internet.c,v 1.6 2001-11-07 11:08:13 phaller Exp $
    22 *
    33 * Wininet
     
    1313#include <debugtools.h>
    1414#include <winerror.h>
     15#include <shlwapi.h>
    1516#include <tchar.h>
    1617#include <winsock.h>
     
    217218BOOL WINAPI InternetGetConnectedState(LPDWORD lpdwStatus, DWORD dwReserved)
    218219{
    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;
    221225}
    222226
     
    704708        LPDWORD lpdwBufferLength, DWORD dwFlags)
    705709{
    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;
    718722}
    719723
  • trunk/src/wininet/wininet.def

    r7290 r7291  
    1 ; $Id: wininet.def,v 1.4 2001-11-07 10:56:15 phaller Exp $
     1; $Id: wininet.def,v 1.5 2001-11-07 11:08:14 phaller Exp $
    22
    33;
     
    1010IMPORTS
    1111   _UrlEscapeA@16                    = SHLWAPI.691
     12   _UrlCanonicalizeA@16              = SHLWAPI.683
    1213
    1314EXPORTS
Note: See TracChangeset for help on using the changeset viewer.