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
bef60f1d
Commit
bef60f1d
authored
Nov 09, 2006
by
Markus Amsler
Committed by
Alexandre Julliard
Nov 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Backport null pointer check in SetCursorProperties.
parent
d1737cc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
device.c
dlls/d3d8/device.c
+4
-0
No files found.
dlls/d3d8/device.c
View file @
bef60f1d
...
@@ -185,6 +185,10 @@ static HRESULT WINAPI IDirect3DDevice8Impl_SetCursorProperties(LPDIRECT3DDEVICE8
...
@@ -185,6 +185,10 @@ static HRESULT WINAPI IDirect3DDevice8Impl_SetCursorProperties(LPDIRECT3DDEVICE8
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IDirect3DSurface8Impl
*
pSurface
=
(
IDirect3DSurface8Impl
*
)
pCursorBitmap
;
IDirect3DSurface8Impl
*
pSurface
=
(
IDirect3DSurface8Impl
*
)
pCursorBitmap
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
TRACE
(
"(%p) Relay
\n
"
,
This
);
if
(
!
pCursorBitmap
)
{
WARN
(
"No cursor bitmap, returning WINED3DERR_INVALIDCALL
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
return
IWineD3DDevice_SetCursorProperties
(
This
->
WineD3DDevice
,
XHotSpot
,
YHotSpot
,(
IWineD3DSurface
*
)
pSurface
->
wineD3DSurface
);
return
IWineD3DDevice_SetCursorProperties
(
This
->
WineD3DDevice
,
XHotSpot
,
YHotSpot
,(
IWineD3DSurface
*
)
pSurface
->
wineD3DSurface
);
}
}
...
...
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