Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c31e6537
Commit
c31e6537
authored
Mar 29, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added IWinInetHttpInfo stub implementation to FtpProtocol object.
parent
b83fd688
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
2 deletions
+58
-2
ftp.c
dlls/urlmon/ftp.c
+57
-2
protocol.c
dlls/urlmon/tests/protocol.c
+1
-0
No files found.
dlls/urlmon/ftp.c
View file @
c31e6537
...
...
@@ -26,12 +26,14 @@ typedef struct {
const
IInternetProtocolVtbl
*
lpInternetProtocolVtbl
;
const
IInternetPriorityVtbl
*
lpInternetPriorityVtbl
;
const
IWinInetHttpInfoVtbl
*
lpWinInetHttpInfoVtbl
;
LONG
ref
;
}
FtpProtocol
;
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define PRIORITY(x) ((IInternetPriority*) &(x)->lpInternetPriorityVtbl)
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
#define PRIORITY(x) ((IInternetPriority*) &(x)->lpInternetPriorityVtbl)
#define INETHTTPINFO(x) ((IWinInetHttpInfo*) &(x)->lpWinInetHttpInfoVtbl)
#define ASYNCPROTOCOL_THIS(iface) DEFINE_THIS2(FtpProtocol, base, iface)
...
...
@@ -97,6 +99,12 @@ static HRESULT WINAPI FtpProtocol_QueryInterface(IInternetProtocol *iface, REFII
}
else
if
(
IsEqualGUID
(
&
IID_IInternetPriority
,
riid
))
{
TRACE
(
"(%p)->(IID_IInternetPriority %p)
\n
"
,
This
,
ppv
);
*
ppv
=
PRIORITY
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IWinInetInfo
,
riid
))
{
TRACE
(
"(%p)->(IID_IWinInetInfo %p)
\n
"
,
This
,
ppv
);
*
ppv
=
INETHTTPINFO
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IWinInetHttpInfo
,
riid
))
{
TRACE
(
"(%p)->(IID_IWinInetHttpInfo %p)
\n
"
,
This
,
ppv
);
*
ppv
=
INETHTTPINFO
(
This
);
}
if
(
*
ppv
)
{
...
...
@@ -295,6 +303,52 @@ static const IInternetPriorityVtbl FtpPriorityVtbl = {
FtpPriority_GetPriority
};
#define INETINFO_THIS(iface) DEFINE_THIS(FtpProtocol, WinInetHttpInfo, iface)
static
HRESULT
WINAPI
HttpInfo_QueryInterface
(
IWinInetHttpInfo
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
FtpProtocol
*
This
=
INETINFO_THIS
(
iface
);
return
IBinding_QueryInterface
(
PROTOCOL
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
HttpInfo_AddRef
(
IWinInetHttpInfo
*
iface
)
{
FtpProtocol
*
This
=
INETINFO_THIS
(
iface
);
return
IBinding_AddRef
(
PROTOCOL
(
This
));
}
static
ULONG
WINAPI
HttpInfo_Release
(
IWinInetHttpInfo
*
iface
)
{
FtpProtocol
*
This
=
INETINFO_THIS
(
iface
);
return
IBinding_Release
(
PROTOCOL
(
This
));
}
static
HRESULT
WINAPI
HttpInfo_QueryOption
(
IWinInetHttpInfo
*
iface
,
DWORD
dwOption
,
void
*
pBuffer
,
DWORD
*
pcbBuffer
)
{
FtpProtocol
*
This
=
INETINFO_THIS
(
iface
);
FIXME
(
"(%p)->(%x %p %p)
\n
"
,
This
,
dwOption
,
pBuffer
,
pcbBuffer
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HttpInfo_QueryInfo
(
IWinInetHttpInfo
*
iface
,
DWORD
dwOption
,
void
*
pBuffer
,
DWORD
*
pcbBuffer
,
DWORD
*
pdwFlags
,
DWORD
*
pdwReserved
)
{
FtpProtocol
*
This
=
INETINFO_THIS
(
iface
);
FIXME
(
"(%p)->(%x %p %p %p %p)
\n
"
,
This
,
dwOption
,
pBuffer
,
pcbBuffer
,
pdwFlags
,
pdwReserved
);
return
E_NOTIMPL
;
}
#undef INETINFO_THIS
static
const
IWinInetHttpInfoVtbl
WinInetHttpInfoVtbl
=
{
HttpInfo_QueryInterface
,
HttpInfo_AddRef
,
HttpInfo_Release
,
HttpInfo_QueryOption
,
HttpInfo_QueryInfo
};
HRESULT
FtpProtocol_Construct
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppobj
)
{
FtpProtocol
*
ret
;
...
...
@@ -308,6 +362,7 @@ HRESULT FtpProtocol_Construct(IUnknown *pUnkOuter, LPVOID *ppobj)
ret
->
base
.
vtbl
=
&
AsyncProtocolVtbl
;
ret
->
lpInternetProtocolVtbl
=
&
FtpProtocolVtbl
;
ret
->
lpInternetPriorityVtbl
=
&
FtpPriorityVtbl
;
ret
->
lpWinInetHttpInfoVtbl
=
&
WinInetHttpInfoVtbl
;
ret
->
ref
=
1
;
*
ppobj
=
PROTOCOL
(
ret
);
...
...
dlls/urlmon/tests/protocol.c
View file @
c31e6537
...
...
@@ -1814,6 +1814,7 @@ static void test_ftp_protocol(void)
ok
(
hres
==
S_OK
,
"Could not get IInternetProtocol: %08x
\n
"
,
hres
);
test_priority
(
async_protocol
);
test_http_info
(
async_protocol
);
SET_EXPECT
(
GetBindInfo
);
SET_EXPECT
(
GetBindString_USER_AGENT
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment