DXGL r363 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r362
|
r363
|
r364
>
Date:
01:04, 28 March 2013
Author:
admin
Status:
new
Tags:
Comment:
Fix GetAvailableVidMem crash in trace build.
Modified paths:
/ddraw/glDirectDraw.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirectDraw.cpp
—
—
@@ -1492,8 +1492,8 @@
1493
1493
{
1494
1494
if(lpdwTotal) glGetIntegerv(GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX,(GLint*)lpdwTotal);
1495
1495
if(lpdwFree) glGetIntegerv(GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX,(GLint*)lpdwFree);
1496
- TRACE_VAR("*lpdwTotal",8,*lpdwTotal);
1497
- TRACE_VAR("*lpdwFree",8,*lpdwFree);
1496
+ if(lpdwTotal) TRACE_VAR("*lpdwTotal",8,*lpdwTotal);
1497
+ if(lpdwFree) TRACE_VAR("*lpdwFree",8,*lpdwFree);
1498
1498
TRACE_EXIT(23,DD_OK);
1499
1499
return DD_OK;
1500
1500
}
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