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
87f6f86c
Commit
87f6f86c
authored
Mar 30, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Mar 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Add a some TRACEs to ID3DXBufferImpl.
parent
404de72f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
core.c
dlls/d3dx9_36/core.c
+13
-5
No files found.
dlls/d3dx9_36/core.c
View file @
87f6f86c
...
...
@@ -46,17 +46,18 @@ static inline struct ID3DXBufferImpl *impl_from_ID3DXBuffer(ID3DXBuffer *iface)
static
HRESULT
WINAPI
ID3DXBufferImpl_QueryInterface
(
ID3DXBuffer
*
iface
,
REFIID
riid
,
void
**
ppobj
)
{
struct
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
TRACE
(
"iface %p, riid %s, object %p
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppobj
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_ID3DXBuffer
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
*
ppobj
=
iface
;
return
D3D_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
WARN
(
"%s not implemented, returning E_NOINTERFACE
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
...
...
@@ -65,7 +66,7 @@ static ULONG WINAPI ID3DXBufferImpl_AddRef(ID3DXBuffer *iface)
struct
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"
(%p) : AddRef from %d
\n
"
,
This
,
ref
-
1
);
TRACE
(
"
%p increasing refcount to %u
\n
"
,
This
,
ref
);
return
ref
;
}
...
...
@@ -75,25 +76,32 @@ static ULONG WINAPI ID3DXBufferImpl_Release(ID3DXBuffer *iface)
struct
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"
(%p) : ReleaseRef to %d
\n
"
,
This
,
ref
);
TRACE
(
"
%p decreasing refcount to %u
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
}
static
LPVOID
WINAPI
ID3DXBufferImpl_GetBufferPointer
(
ID3DXBuffer
*
iface
)
{
struct
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
TRACE
(
"iface %p
\n
"
,
iface
);
return
This
->
buffer
;
}
static
DWORD
WINAPI
ID3DXBufferImpl_GetBufferSize
(
ID3DXBuffer
*
iface
)
{
struct
ID3DXBufferImpl
*
This
=
impl_from_ID3DXBuffer
(
iface
);
TRACE
(
"iface %p
\n
"
,
iface
);
return
This
->
size
;
}
...
...
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