mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
Synced urlmon.dll with Wine HEAD.
This *does not* fix Downloader svn path=/trunk/; revision=33443
This commit is contained in:
parent
5e244d149d
commit
d91736aefb
4 changed files with 58 additions and 2 deletions
|
@ -99,8 +99,7 @@ static HRESULT WINAPI FileProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
|
|||
DWORD grfBINDF = 0;
|
||||
LARGE_INTEGER size;
|
||||
DWORD len;
|
||||
LPWSTR url, mime = NULL;
|
||||
LPCWSTR file_name;
|
||||
LPWSTR url, mime = NULL, file_name;
|
||||
WCHAR null_char = 0;
|
||||
BOOL first_call = FALSE;
|
||||
HRESULT hres;
|
||||
|
@ -136,6 +135,8 @@ static HRESULT WINAPI FileProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
|
|||
IInternetProtocolSink_ReportProgress(pOIProtSink, BINDSTATUS_DIRECTBIND, NULL);
|
||||
|
||||
if(!This->file) {
|
||||
WCHAR *ptr;
|
||||
|
||||
first_call = TRUE;
|
||||
|
||||
IInternetProtocolSink_ReportProgress(pOIProtSink, BINDSTATUS_SENDINGREQUEST, &null_char);
|
||||
|
@ -146,6 +147,13 @@ static HRESULT WINAPI FileProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
|
|||
if(*file_name == '/')
|
||||
file_name++;
|
||||
|
||||
for(ptr = file_name; *ptr; ptr++) {
|
||||
if(*ptr == '?' || *ptr == '#') {
|
||||
*ptr = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
This->file = CreateFileW(file_name, GENERIC_READ, FILE_SHARE_READ, NULL,
|
||||
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
|
||||
|
|
|
@ -298,3 +298,12 @@ HRESULT WINAPI CoInternetQueryInfo(LPCWSTR pwzUrl, QUERYOPTION QueryOption,
|
|||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* CoInternetSetFeatureEnabled (URLMON.@)
|
||||
*/
|
||||
HRESULT WINAPI CoInternetSetFeatureEnabled(INTERNETFEATURELIST feature, DWORD flags, BOOL enable)
|
||||
{
|
||||
FIXME("%d, 0x%08x, %x, stub\n", feature, flags, enable);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
@ stdcall CoInternetGetSession(long ptr long)
|
||||
@ stdcall CoInternetParseUrl(wstr long long wstr long ptr long)
|
||||
@ stdcall CoInternetQueryInfo(ptr long long ptr long ptr long)
|
||||
@ stdcall CoInternetSetFeatureEnabled(long long long)
|
||||
@ stub CompareSecurityIds
|
||||
@ stub CopyBindInfo
|
||||
@ stdcall CopyStgMedium(ptr ptr)
|
||||
|
|
|
@ -1325,6 +1325,43 @@ interface ISoftDistExt : IUnknown
|
|||
[in] LPCODEBASEHOLD lpcbh);
|
||||
}
|
||||
|
||||
typedef enum _tagINTERNETFEATURELIST
|
||||
{
|
||||
FEATURE_OBJECT_CACHING,
|
||||
FEATURE_ZONE_ELEVATION,
|
||||
FEATURE_MIME_HANDLING,
|
||||
FEATURE_MIME_SNIFFING,
|
||||
FEATURE_WINDOW_RESTRICTIONS,
|
||||
FEATURE_WEBOC_POPUPMANAGEMENT,
|
||||
FEATURE_BEHAVIORS,
|
||||
FEATURE_DISABLE_MK_PROTOCOL,
|
||||
FEATURE_LOCALMACHINE_LOCKDOWN,
|
||||
FEATURE_SECURITYBAND,
|
||||
FEATURE_RESTRICT_ACTIVEXINSTALL,
|
||||
FEATURE_VALIDATE_NAVIGATE_URL,
|
||||
FEATURE_RESTRICT_FILEDOWNLOAD,
|
||||
FEATURE_ADDON_MANAGEMENT,
|
||||
FEATURE_PROTOCOL_LOCKDOWN,
|
||||
FEATURE_HTTP_USERNAME_PASSWORD_DISABLE,
|
||||
FEATURE_SAFE_BINDTOOBJECT,
|
||||
FEATURE_UNC_SAVEDFILECHECK,
|
||||
FEATURE_GET_URL_DOM_FILEPATH_UNENCODED,
|
||||
FEATURE_TABBED_BROWSING,
|
||||
FEATURE_SSLUX,
|
||||
FEATURE_DISABLE_NAVIGATION_SOUNDS,
|
||||
FEATURE_DISABLE_LEGACY_COMPRESSION,
|
||||
FEATURE_FORCE_ADDR_AND_STATUS,
|
||||
FEATURE_XMLHTTP,
|
||||
FEATURE_DISABLE_TELNET_PROTOCOL,
|
||||
FEATURE_FEEDS,
|
||||
FEATURE_BLOCK_INPUT_PROMPTS,
|
||||
FEATURE_DOMSTORAGE,
|
||||
FEATURE_XDOMAINREQUEST,
|
||||
FEATURE_DATAURI,
|
||||
FEATURE_AJAX_CONNECTIONSERVICES,
|
||||
FEATURE_ENTRY_COUNT
|
||||
} INTERNETFEATURELIST;
|
||||
|
||||
cpp_quote("DEFINE_GUID(CLSID_InternetSecurityManager, 0x7b8a2d94, 0x0ac9, 0x11d1, 0x89, 0x6c, 0x00, 0xc0, 0x4f, 0xB6, 0xbf, 0xc4);")
|
||||
cpp_quote("DEFINE_GUID(CLSID_InternetZoneManager, 0x7B8A2D95, 0x0AC9, 0x11D1, 0x89, 0x6C, 0x00, 0xC0, 0x4F, 0xB6, 0xBF, 0xC4);")
|
||||
cpp_quote("DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B);")
|
||||
|
@ -1391,6 +1428,7 @@ cpp_quote("HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD);")
|
|||
cpp_quote("HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider*, IInternetZoneManager**, DWORD);")
|
||||
cpp_quote("HRESULT WINAPI CoInternetParseUrl(LPCWSTR,PARSEACTION,DWORD,LPWSTR,DWORD,DWORD*,DWORD);")
|
||||
cpp_quote("HRESULT WINAPI CoInternetQueryInfo(LPCWSTR,QUERYOPTION,DWORD,LPVOID,DWORD,DWORD*,DWORD);")
|
||||
cpp_quote("HRESULT WINAPI CoInternetSetFeatureEnabled(INTERNETFEATURELIST,DWORD,BOOL);")
|
||||
cpp_quote("HRESULT WINAPI CreateFormatEnumerator(UINT,FORMATETC*,IEnumFORMATETC**);")
|
||||
cpp_quote("HRESULT WINAPI GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi);")
|
||||
cpp_quote("HRESULT WINAPI FaultInIEFeature(HWND,uCLSSPEC*,QUERYCONTEXT*,DWORD);")
|
||||
|
|
Loading…
Reference in a new issue