mirror of
https://github.com/reactos/wine.git
synced 2024-12-02 08:46:29 +00:00
wined3d: Avoid NULL dereference.
This commit is contained in:
parent
3f19ffe809
commit
92bc96a96b
@ -2405,7 +2405,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetStreamSource(IWineD3DDevice *iface,
|
|||||||
}
|
}
|
||||||
*pStream = This->stateBlock->streamSource[StreamNumber];
|
*pStream = This->stateBlock->streamSource[StreamNumber];
|
||||||
*pStride = This->stateBlock->streamStride[StreamNumber];
|
*pStride = This->stateBlock->streamStride[StreamNumber];
|
||||||
|
if (pOffset) {
|
||||||
*pOffset = This->stateBlock->streamOffset[StreamNumber];
|
*pOffset = This->stateBlock->streamOffset[StreamNumber];
|
||||||
|
}
|
||||||
|
|
||||||
if (*pStream == NULL) {
|
if (*pStream == NULL) {
|
||||||
FIXME("Attempting to get an empty stream %d, returning WINED3DERR_INVALIDCALL\n", StreamNumber);
|
FIXME("Attempting to get an empty stream %d, returning WINED3DERR_INVALIDCALL\n", StreamNumber);
|
||||||
|
Loading…
Reference in New Issue
Block a user