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
7ac5bd67
Commit
7ac5bd67
authored
Aug 05, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Aug 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d: Don't crash when SetRenderTarget() is called with a NULL pSurface.
parent
219ca7c2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
device.c
dlls/d3d8/device.c
+1
-1
device.c
dlls/d3d9/device.c
+1
-1
No files found.
dlls/d3d8/device.c
View file @
7ac5bd67
...
...
@@ -579,7 +579,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_SetRenderTarget(LPDIRECT3DDEVICE8 ifa
IWineD3DDevice_SetDepthStencilSurface
(
This
->
WineD3DDevice
,
NULL
==
pZSurface
?
NULL
:
(
IWineD3DSurface
*
)
pZSurface
->
wineD3DSurface
);
return
IWineD3DDevice_SetRenderTarget
(
This
->
WineD3DDevice
,
0
,
(
IWineD3DSurface
*
)
pSurface
->
wineD3DSurface
);
return
IWineD3DDevice_SetRenderTarget
(
This
->
WineD3DDevice
,
0
,
pSurface
?
(
IWineD3DSurface
*
)
pSurface
->
wineD3DSurface
:
NULL
);
}
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetRenderTarget
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DSurface8
**
ppRenderTarget
)
{
...
...
dlls/d3d9/device.c
View file @
7ac5bd67
...
...
@@ -380,7 +380,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_SetRenderTarget(LPDIRECT3DDEVICE9 i
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
IDirect3DSurface9Impl
*
pSurface
=
(
IDirect3DSurface9Impl
*
)
pRenderTarget
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetRenderTarget
(
This
->
WineD3DDevice
,
RenderTargetIndex
,(
IWineD3DSurface
*
)
pSurface
->
wineD3DSurface
);
return
IWineD3DDevice_SetRenderTarget
(
This
->
WineD3DDevice
,
RenderTargetIndex
,
pSurface
?
(
IWineD3DSurface
*
)
pSurface
->
wineD3DSurface
:
NULL
);
}
static
HRESULT
WINAPI
IDirect3DDevice9Impl_GetRenderTarget
(
LPDIRECT3DDEVICE9
iface
,
DWORD
RenderTargetIndex
,
IDirect3DSurface9
**
ppRenderTarget
)
{
...
...
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