Fix bogus calls to GetMemoryStatus and GetMemoryStatusEx: need to set the dwLength member of the struct prior to calling. Otherwise it's just a garbage value from the stack. Also, pay attention to return value of GetMemoryStatusEx: if it indicates failure then just return 0 without using any of the other data the call returns.
Fix bogus calls to GetMemoryStatus and GetMemoryStatusEx: need to set the dwLength member of the struct prior to calling. Otherwise it's just a garbage value from the stack. Also, pay attention to return value of GetMemoryStatusEx: if it indicates failure then just return 0 without using any of the other data the call returns.

candy7393/VTK,mspark93/VTK,sankhesh/VTK,jeffbaumes/jeffbaumes-vtk,cjh1/VTK,SimVascular/VTK,cjh1/VTK,sankhesh/VTK,candy7393/VTK,spthaolt/VTK,sumedhasingla/VTK,aashish24/VTK-old,jeffbaumes/jeffbaumes-vtk,sumedhasingla/VTK,naucoin/VTKSlicerWidgets,ashray/VTK-EVM,jeffbaumes/jeffbaumes-vtk,Wuteyan/VTK,mspark93/VTK,candy7393/VTK,jeffbaumes/jeffbaumes-vtk,keithroe/vtkoptix,collects/VTK,johnkit/vtk-dev,SimVascular/VTK,SimVascular/VTK,sankhesh/VTK,ashray/VTK-EVM,naucoin/VTKSlicerWidgets,berendkleinhaneveld/VTK,ashray/VTK-EVM,keithroe/vtkoptix,arnaudgelas/VTK,berendkleinhaneveld/VTK,daviddoria/PointGraphsPhase1,johnkit/vtk-dev,SimVascular/VTK,jeffbaumes/jeffbaumes-vtk,sumedhasingla/VTK,gram526/VTK,gram526/VTK,arnaudgelas/VTK,cjh1/VTK,jmerkow/VTK,spthaolt/VTK,ashray/VTK-EVM,berendkleinhaneveld/VTK,jmerkow/VTK,mspark93/VTK,spthaolt/VTK,candy7393/VTK,Wuteyan/VTK,demarle/VTK,berendkleinhaneveld/VTK,demarle/VTK,jmerkow/VTK,mspark93/VTK,arnaudgelas/VTK,Wuteyan/VTK,arnaudgelas/VTK,biddisco/VTK,johnkit/vtk-dev,sankhesh/VTK,mspark93/VTK,keithroe/vtkoptix,sumedhasingla/VTK,SimVascular/VTK,keithroe/vtkoptix,candy7393/VTK,demarle/VTK,cjh1/VTK,collects/VTK,aashish24/VTK-old,msmolens/VTK,collects/VTK,biddisco/VTK,spthaolt/VTK,biddisco/VTK,aashish24/VTK-old,ashray/VTK-EVM,spthaolt/VTK,collects/VTK,keithroe/vtkoptix,SimVascular/VTK,johnkit/vtk-dev,johnkit/vtk-dev,collects/VTK,naucoin/VTKSlicerWidgets,Wuteyan/VTK,keithroe/vtkoptix,msmolens/VTK,gram526/VTK,naucoin/VTKSlicerWidgets,msmolens/VTK,candy7393/VTK,jmerkow/VTK,jmerkow/VTK,daviddoria/PointGraphsPhase1,sankhesh/VTK,aashish24/VTK-old,arnaudgelas/VTK,ashray/VTK-EVM,candy7393/VTK,Wuteyan/VTK,berendkleinhaneveld/VTK,msmolens/VTK,SimVascular/VTK,biddisco/VTK,daviddoria/PointGraphsPhase1,demarle/VTK,cjh1/VTK,gram526/VTK,jmerkow/VTK,mspark93/VTK,mspark93/VTK,msmolens/VTK,demarle/VTK,ashray/VTK-EVM,hendradarwin/VTK,daviddoria/PointGraphsPhase1,keithroe/vtkoptix,naucoin/VTKSlicerWidgets,berendkleinhaneveld/VTK,hendradarwin/VTK,arnaudgelas/VTK,biddisco/VTK,demarle/VTK,gram526/VTK,spthaolt/VTK,sumedhasingla/VTK,keithroe/vtkoptix,sankhesh/VTK,collects/VTK,jmerkow/VTK,jeffbaumes/jeffbaumes-vtk,gram526/VTK,sankhesh/VTK,aashish24/VTK-old,msmolens/VTK,naucoin/VTKSlicerWidgets,sumedhasingla/VTK,sumedhasingla/VTK,daviddoria/PointGraphsPhase1,gram526/VTK,hendradarwin/VTK,demarle/VTK,mspark93/VTK,spthaolt/VTK,hendradarwin/VTK,johnkit/vtk-dev,Wuteyan/VTK,ashray/VTK-EVM,jmerkow/VTK,Wuteyan/VTK,daviddoria/PointGraphsPhase1,biddisco/VTK,hendradarwin/VTK,hendradarwin/VTK,hendradarwin/VTK,demarle/VTK,johnkit/vtk-dev,cjh1/VTK,biddisco/VTK,SimVascular/VTK,sankhesh/VTK,aashish24/VTK-old,sumedhasingla/VTK,berendkleinhaneveld/VTK,gram526/VTK,candy7393/VTK,msmolens/VTK,msmolens/VTK