DXGL r86 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r85
|
r86
|
r87
>
Date:
01:03, 24 January 2012
Author:
admin
Status:
new
Tags:
Comment:
Fix GetAvailableVidMem - check if pointers are null
Modified paths:
/ddraw/glDirectDraw.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirectDraw.cpp
—
—
@@ -1787,8 +1787,8 @@
1788
1788
MEMORYSTATUS memstatus;
1789
1789
memstatus.dwLength = sizeof(MEMORYSTATUS);
1790
1790
GlobalMemoryStatus(&memstatus);
1791
- *lpdwTotal = memstatus.dwTotalVirtual;
1792
- *lpdwFree = memstatus.dwAvailVirtual;
1791
+ if(lpdwTotal) *lpdwTotal = memstatus.dwTotalVirtual;
1792
+ if(lpdwFree) *lpdwFree = memstatus.dwAvailVirtual;
1793
1793
return DD_OK;
1794
1794
}
1795
1795
// DDRAW4 wrapper
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