DXGL r363 - Code Review

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 @@
14931493 {
14941494 if(lpdwTotal) glGetIntegerv(GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX,(GLint*)lpdwTotal);
14951495 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);
14981498 TRACE_EXIT(23,DD_OK);
14991499 return DD_OK;
15001500 }