DXGL r85 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r84‎ | r85 | r86 >
Date:01:01, 24 January 2012
Author:admin
Status:new
Tags:
Comment:
Forgot to add the GlobalMemoryStatus call.
Modified paths:
  • /ddraw/glDirectDraw.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDraw.cpp
@@ -1786,6 +1786,7 @@
17871787 {
17881788 MEMORYSTATUS memstatus;
17891789 memstatus.dwLength = sizeof(MEMORYSTATUS);
 1790+ GlobalMemoryStatus(&memstatus);
17901791 *lpdwTotal = memstatus.dwTotalVirtual;
17911792 *lpdwFree = memstatus.dwAvailVirtual;
17921793 return DD_OK;