imported wininet from wine

svn path=/trunk/; revision=14692
This commit is contained in:
Steven Edwards 2005-04-19 04:57:39 +00:00
parent 38de497b18
commit 87aa47161b
5 changed files with 11 additions and 14 deletions

View file

@ -1,5 +0,0 @@
Makefile
rsrc.res
version.res
wininet.dll.dbg.c
wininet.spec.def

View file

@ -157,6 +157,7 @@ static BOOL WININET_GetSetPassword( HWND hdlg, LPCWSTR szServer,
*/ */
if( bSet ) if( bSet )
{ {
#ifndef __REACTOS__
szUserPass[0] = 0; szUserPass[0] = 0;
GetWindowTextW( hUserItem, szUserPass, GetWindowTextW( hUserItem, szUserPass,
(sizeof szUserPass-1)/sizeof(WCHAR) ); (sizeof szUserPass-1)/sizeof(WCHAR) );
@ -171,14 +172,17 @@ static BOOL WININET_GetSetPassword( HWND hdlg, LPCWSTR szServer,
(CHAR*)szUserPass, u_len, dwMagic, 0 ); (CHAR*)szUserPass, u_len, dwMagic, 0 );
return ( r == WN_SUCCESS ); return ( r == WN_SUCCESS );
#else
return FALSE;
#endif
} }
sz = sizeof szUserPass; sz = sizeof szUserPass;
r_len = (strlenW( szResource ) + 1)*sizeof(WCHAR); r_len = (strlenW( szResource ) + 1)*sizeof(WCHAR);
r = WNetGetCachedPassword( (CHAR*)szResource, r_len, // r = WNetGetCachedPassword( (CHAR*)szResource, r_len,
(CHAR*)szUserPass, &sz, dwMagic ); // (CHAR*)szUserPass, &sz, dwMagic );
if( r != WN_SUCCESS ) // if( r != WN_SUCCESS )
return FALSE; // return FALSE;
p = strchrW( szUserPass, ':' ); p = strchrW( szUserPass, ':' );
if( p ) if( p )

View file

@ -37,7 +37,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "wine/library.h" //#include "wine/library.h"
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wininet.h" #include "wininet.h"

View file

@ -1,4 +0,0 @@
Makefile
generated.ok
http.ok
testlist.c

View file

@ -42,6 +42,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(wininet); WINE_DEFAULT_DEBUG_CHANNEL(wininet);
#define TIME_STRING_LEN 30 #define TIME_STRING_LEN 30
#define CP_UNIXCP 65010 /* Wine extension */
time_t ConvertTimeString(LPCWSTR asctime) time_t ConvertTimeString(LPCWSTR asctime)
{ {