d3d8: Fix incorrect ordering of brackets in IDirect3DVertexShader8Impl_GetDevice.
The comparison should be (D3D_OK == hr && myDevice), not (D3D_OK == (hr && myDevice)). (Found with PreFast.)
This commit is contained in:
parent
c9d24bdc3e
commit
941801c548
|
@ -70,7 +70,8 @@ static HRESULT WINAPI IDirect3DVertexShader8Impl_GetDevice(IDirect3DVertexShader
|
|||
HRESULT hr = D3D_OK;
|
||||
TRACE("(%p) : Relay\n", This);
|
||||
|
||||
if (D3D_OK == (hr = IWineD3DVertexShader_GetDevice(This->wineD3DVertexShader, &myDevice) && myDevice != NULL)) {
|
||||
hr = IWineD3DVertexShader_GetDevice(This->wineD3DVertexShader, &myDevice);
|
||||
if (D3D_OK == hr && myDevice != NULL) {
|
||||
hr = IWineD3DDevice_GetParent(myDevice, (IUnknown **)ppDevice);
|
||||
IWineD3DDevice_Release(myDevice);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue