Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
6a193392
Commit
6a193392
authored
Dec 02, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove needless NULL checks (coverity).
parent
5bc0dd71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
surface.c
dlls/wined3d/surface.c
+3
-3
No files found.
dlls/wined3d/surface.c
View file @
6a193392
...
...
@@ -4053,7 +4053,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_BltFast(IWineD3DSurface *iface, DWORD
IWineD3DDeviceImpl
*
myDevice
=
This
->
resource
.
wineD3DDevice
;
TRACE
(
"(%p)->(%d, %d, %p, %p, %08x
\n
"
,
iface
,
dstx
,
dsty
,
Source
,
rsrc
,
trans
);
if
(
(
This
->
Flags
&
SFLAG_LOCKED
)
||
(
(
srcImpl
!=
NULL
)
&&
(
srcImpl
->
Flags
&
SFLAG_LOCKED
)
))
if
(
(
This
->
Flags
&
SFLAG_LOCKED
)
||
(
srcImpl
->
Flags
&
SFLAG_LOCKED
))
{
WARN
(
" Surface is busy, returning DDERR_SURFACEBUSY
\n
"
);
return
WINEDDERR_SURFACEBUSY
;
...
...
@@ -4061,14 +4061,14 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_BltFast(IWineD3DSurface *iface, DWORD
if
(
myDevice
->
inScene
&&
(
iface
==
myDevice
->
stencilBufferTarget
||
(
Source
&&
Source
==
myDevice
->
stencilBufferTarget
)))
{
(
Source
==
myDevice
->
stencilBufferTarget
)))
{
TRACE
(
"Attempt to access the depth stencil surface in a BeginScene / EndScene pair, returning WINED3DERR_INVALIDCALL
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
/* Special cases for RenderTargets */
if
(
(
This
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
||
(
srcImpl
&&
(
srcImpl
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
)
)
{
(
srcImpl
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
)
{
RECT
SrcRect
,
DstRect
;
DWORD
Flags
=
0
;
...
...
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