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
b10ba611
Commit
b10ba611
authored
Feb 08, 2005
by
Carlos Lozano
Committed by
Alexandre Julliard
Feb 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check that pstream is not null.
parent
fbf3b25b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
device.c
dlls/d3d8/device.c
+1
-1
device.c
dlls/wined3d/device.c
+1
-1
No files found.
dlls/d3d8/device.c
View file @
b10ba611
...
...
@@ -4344,7 +4344,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetStreamSource(LPDIRECT3DDEVICE8 iface, U
TRACE
(
"(%p) : StreamNo: %d, Stream (%p), Stride %d
\n
"
,
This
,
StreamNumber
,
This
->
StateBlock
->
stream_source
[
StreamNumber
],
This
->
StateBlock
->
stream_stride
[
StreamNumber
]);
*
pStream
=
This
->
StateBlock
->
stream_source
[
StreamNumber
];
*
pStride
=
This
->
StateBlock
->
stream_stride
[
StreamNumber
];
IDirect3DVertexBuffer8Impl_AddRef
((
LPDIRECT3DVERTEXBUFFER8
)
*
pStream
);
if
(
*
pStream
!=
NULL
)
IDirect3DVertexBuffer8Impl_AddRef
((
LPDIRECT3DVERTEXBUFFER8
)
*
pStream
);
return
D3D_OK
;
}
...
...
dlls/wined3d/device.c
View file @
b10ba611
...
...
@@ -741,7 +741,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetStreamSource(IWineD3DDevice *iface, UINT St
*
pStream
=
This
->
stateBlock
->
stream_source
[
StreamNumber
];
*
pStride
=
This
->
stateBlock
->
stream_stride
[
StreamNumber
];
*
pOffset
=
This
->
stateBlock
->
stream_offset
[
StreamNumber
];
IWineD3DVertexBuffer_AddRef
(
*
pStream
);
/* We have created a new reference to the VB */
if
(
*
pStream
!=
NULL
)
IWineD3DVertexBuffer_AddRef
(
*
pStream
);
/* We have created a new reference to the VB */
return
D3D_OK
;
}
...
...
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