Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
04a84bc7
Commit
04a84bc7
authored
Dec 01, 2022
by
Robert Wilhelm
Committed by
Alexandre Julliard
Dec 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wshom.ocx: Downgrade FIXME to WARN for unsupported interfaces.
Scripting always checks for DispatchEx interface before falling back to Dispatch.
parent
e9592991
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
network.c
dlls/wshom.ocx/network.c
+9
-7
wshom.c
dlls/wshom.ocx/tests/wshom.c
+2
-0
No files found.
dlls/wshom.ocx/network.c
View file @
04a84bc7
...
...
@@ -16,6 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define COBJMACROS
#include "dispex.h"
#include "wshom_private.h"
#include "wshom.h"
...
...
@@ -30,17 +33,16 @@ static HRESULT WINAPI WshNetwork2_QueryInterface(IWshNetwork2 *iface, REFIID rii
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDispatch
)
||
IsEqualGUID
(
riid
,
&
IID_IWshNetwork
)
||
IsEqualGUID
(
riid
,
&
IID_IWshNetwork2
))
{
IsEqualGUID
(
riid
,
&
IID_IWshNetwork2
))
{
*
ppv
=
iface
;
}
else
{
FIXME
(
"Unknown iface %s
\n
"
,
debugstr_guid
(
riid
));
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
else
{
WARN
(
"interface not supported %s
\n
"
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
ULONG
WINAPI
WshNetwork2_AddRef
(
IWshNetwork2
*
iface
)
...
...
dlls/wshom.ocx/tests/wshom.c
View file @
04a84bc7
...
...
@@ -700,6 +700,8 @@ static void test_wshnetwork(void)
check_interface
(
disp
,
&
IID_IWshNetwork
,
TRUE
);
check_interface
(
disp
,
&
IID_IWshNetwork2
,
TRUE
);
check_interface
(
disp
,
&
IID_IDispatchEx
,
FALSE
);
check_interface
(
disp
,
&
IID_IObjectWithSite
,
FALSE
);
IDispatch_Release
(
disp
);
}
...
...
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