DXGL r540 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r539
|
r540
|
r541
>
Date:
15:08, 20 September 2014
Author:
admin
Status:
new
Tags:
Comment:
When GetCurrentViewport fails, return NULL pointer.
Modified paths:
/ddraw/glDirect3DDevice.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirect3DDevice.cpp
—
—
@@ -1969,8 +1969,8 @@
1970
1970
TRACE_ENTER(2,14,this,14,lplpd3dViewport);
1971
1971
if(!this) TRACE_RET(HRESULT,23,DDERR_INVALIDOBJECT);
1972
1972
if(!lplpd3dViewport) TRACE_RET(HRESULT,23,DDERR_INVALIDPARAMS);
1973
- if(!currentviewport) TRACE_RET(HRESULT,23,D3DERR_NOCURRENTVIEWPORT);
1974
1973
*lplpd3dViewport = (LPDIRECT3DVIEWPORT3)currentviewport;
1974
+ if (!currentviewport) TRACE_RET(HRESULT, 23, D3DERR_NOCURRENTVIEWPORT);
1975
1975
glDirect3DViewport3_AddRef(currentviewport);
1976
1976
TRACE_VAR("*lplpd3dViewport",14,*lplpd3dViewport);
1977
1977
TRACE_EXIT(23,D3D_OK);
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version