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
5b66442b
Commit
5b66442b
authored
Oct 30, 2019
by
Matteo Bruni
Committed by
Alexandre Julliard
Oct 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Turn unimplemented interface ERR into a WARN.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
29c02234
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
effect.c
dlls/d3dx9_36/effect.c
+14
-12
No files found.
dlls/d3dx9_36/effect.c
View file @
5b66442b
...
...
@@ -4214,41 +4214,43 @@ static HRESULT WINAPI ID3DXEffectCompilerImpl_QueryInterface(ID3DXEffectCompiler
{
TRACE
(
"iface %p, riid %s, object %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
object
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_ID3DXEffectCompiler
))
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_ID3DXEffectCompiler
))
{
iface
->
lpVtbl
->
AddRef
(
iface
);
*
object
=
iface
;
return
S_OK
;
}
ERR
(
"Interface %s not found
\n
"
,
debugstr_guid
(
riid
));
WARN
(
"%s not implemented, returning E_NOINTERFACE.
\n
"
,
debugstr_guid
(
riid
));
*
object
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
ID3DXEffectCompilerImpl_AddRef
(
ID3DXEffectCompiler
*
iface
)
{
struct
ID3DXEffectCompilerImpl
*
This
=
impl_from_ID3DXEffectCompiler
(
iface
);
struct
ID3DXEffectCompilerImpl
*
compiler
=
impl_from_ID3DXEffectCompiler
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
compiler
->
ref
);
TRACE
(
"
iface %p: AddRef from %u
\n
"
,
iface
,
This
->
ref
);
TRACE
(
"
%p increasing refcount to %u.
\n
"
,
iface
,
refcount
);
return
InterlockedIncrement
(
&
This
->
ref
)
;
return
refcount
;
}
static
ULONG
WINAPI
ID3DXEffectCompilerImpl_Release
(
ID3DXEffectCompiler
*
iface
)
{
struct
ID3DXEffectCompilerImpl
*
This
=
impl_from_ID3DXEffectCompiler
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
struct
ID3DXEffectCompilerImpl
*
compiler
=
impl_from_ID3DXEffectCompiler
(
iface
);
ULONG
ref
count
=
InterlockedDecrement
(
&
compiler
->
ref
);
TRACE
(
"
iface %p: Release from %u
\n
"
,
iface
,
ref
+
1
);
TRACE
(
"
%p decreasing refcount to %u.
\n
"
,
iface
,
refcount
);
if
(
!
ref
)
if
(
!
ref
count
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
heap_free
(
compiler
);
}
return
ref
;
return
ref
count
;
}
/*** ID3DXBaseEffect methods ***/
...
...
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