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
2db7691e
Commit
2db7691e
authored
Apr 07, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: AddRef the device in IDirect3DVertexDeclaration9::AddRef.
parent
0d88a382
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
vertexdeclaration.c
dlls/d3d9/vertexdeclaration.c
+6
-2
No files found.
dlls/d3d9/vertexdeclaration.c
View file @
2db7691e
...
...
@@ -202,6 +202,10 @@ static ULONG WINAPI IDirect3DVertexDeclaration9Impl_AddRef(LPDIRECT3DVERTEXDECLA
TRACE
(
"(%p) : AddRef from %d
\n
"
,
This
,
ref
-
1
);
if
(
ref
==
1
)
{
IUnknown_AddRef
(
This
->
parentDevice
);
}
return
ref
;
}
...
...
@@ -324,7 +328,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexDeclaration(LPDIRECT3DDEVICE9
}
object
->
lpVtbl
=
&
Direct3DVertexDeclaration9_Vtbl
;
object
->
ref
=
1
;
object
->
ref
=
0
;
object
->
elements
=
HeapAlloc
(
GetProcessHeap
(),
0
,
element_count
*
sizeof
(
D3DVERTEXELEMENT9
));
if
(
!
object
->
elements
)
{
...
...
@@ -347,9 +351,9 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexDeclaration(LPDIRECT3DDEVICE9
HeapFree
(
GetProcessHeap
(),
0
,
object
->
elements
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
}
else
{
IUnknown_AddRef
(
iface
);
object
->
parentDevice
=
iface
;
*
ppDecl
=
(
LPDIRECT3DVERTEXDECLARATION9
)
object
;
IUnknown_AddRef
(
*
ppDecl
);
TRACE
(
"(%p) : Created vertex declaration %p
\n
"
,
This
,
object
);
}
return
hr
;
...
...
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