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
4b9fedbb
Commit
4b9fedbb
authored
May 12, 2007
by
Marcus Meissner
Committed by
Alexandre Julliard
May 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fixed swapchain context NULL ptr checks.
parent
d9c12049
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
device.c
dlls/wined3d/device.c
+4
-5
No files found.
dlls/wined3d/device.c
View file @
4b9fedbb
...
...
@@ -1366,15 +1366,15 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
/** FIXME: Handle stencil appropriately via EnableAutoDepthStencil / AutoDepthStencilFormat **/
object
->
context
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
object
->
context
));
if
(
!
object
->
context
)
{
}
if
(
!
object
->
context
)
return
E_OUTOFMEMORY
;
object
->
num_contexts
=
1
;
ENTER_GL
();
object
->
context
[
0
]
=
CreateContext
(
This
,
(
IWineD3DSurfaceImpl
*
)
object
->
frontBuffer
,
display
,
object
->
win
);
LEAVE_GL
();
if
(
!
object
->
context
)
{
if
(
!
object
->
context
[
0
]
)
{
ERR
(
"Failed to create a new context
\n
"
);
hr
=
WINED3DERR_NOTAVAILABLE
;
goto
error
;
...
...
@@ -1517,9 +1517,8 @@ error:
HeapFree
(
GetProcessHeap
(),
0
,
object
->
backBuffer
);
object
->
backBuffer
=
NULL
;
}
if
(
object
->
context
)
{
if
(
object
->
context
[
0
])
DestroyContext
(
This
,
object
->
context
[
0
]);
}
if
(
object
->
frontBuffer
)
{
IWineD3DSurface_GetParent
(
object
->
frontBuffer
,
&
bufferParent
);
IUnknown_Release
(
bufferParent
);
/* once for the get parent */
...
...
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