Commit f5ea78f6 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

url: Add support for http protocol handling in FileProtocolHandlerA.

parent bd5b865f
......@@ -88,8 +88,7 @@ BOOL WINAPI InetIsOffline(DWORD flags)
* int nShowCmd - How to display the operation.
*/
HRESULT WINAPI FileProtocolHandlerA(HWND hWnd, HINSTANCE hInst, LPCSTR pszUrl,
int nShowCmd)
void WINAPI FileProtocolHandlerA(HWND hWnd, HINSTANCE hInst, LPCSTR pszUrl, int nShowCmd)
{
CHAR pszPath[MAX_PATH];
DWORD size = MAX_PATH;
......@@ -97,12 +96,7 @@ HRESULT WINAPI FileProtocolHandlerA(HWND hWnd, HINSTANCE hInst, LPCSTR pszUrl,
TRACE("(%p, %s, %d)\n",hWnd,debugstr_a(pszUrl),nShowCmd);
if(createpath != S_OK)
return E_FAIL;
ShellExecuteA(hWnd,NULL,pszPath,NULL,NULL,nShowCmd);
return S_OK;
ShellExecuteA(hWnd, NULL, createpath==S_OK ? pszPath : pszUrl, NULL, NULL, nShowCmd);
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment