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
6bb2d5d2
Commit
6bb2d5d2
authored
Nov 08, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Removed superflous NULL checks (Coverity).
parent
b49a9cbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
directx.c
dlls/d3d8/directx.c
+4
-8
No files found.
dlls/d3d8/directx.c
View file @
6bb2d5d2
...
...
@@ -450,16 +450,12 @@ static HRESULT WINAPI IDirect3D8Impl_CreateDevice(LPDIRECT3D8 iface, UINT Adapte
err:
*
ppReturnedDeviceInterface
=
NULL
;
if
(
!
object
)
return
hr
;
HeapFree
(
GetProcessHeap
(),
0
,
object
->
decls
);
if
(
object
->
WineD3DDevice
)
{
wined3d_mutex_lock
();
IWineD3DDevice_Uninit3D
(
object
->
WineD3DDevice
,
D3D8CB_DestroySwapChain
);
IWineD3DDevice_Release
(
object
->
WineD3DDevice
);
wined3d_mutex_unlock
();
}
wined3d_mutex_lock
();
IWineD3DDevice_Uninit3D
(
object
->
WineD3DDevice
,
D3D8CB_DestroySwapChain
);
IWineD3DDevice_Release
(
object
->
WineD3DDevice
);
wined3d_mutex_unlock
();
HeapFree
(
GetProcessHeap
(),
0
,
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