]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/system-info/windows/nt/nt.factor
Updating code to use with-out-parameters
[factor.git] / basis / system-info / windows / nt / nt.factor
old mode 100755 (executable)
new mode 100644 (file)
index 2c13c8d..804eb25
@@ -11,8 +11,8 @@ M: winnt cpus ( -- n )
     system-info dwNumberOfProcessors>> ;
 
 : memory-status ( -- MEMORYSTATUSEX )
-    "MEMORYSTATUSEX" <struct>
-    dup class heap-size >>dwLength
+    MEMORYSTATUSEX <struct>
+    MEMORYSTATUSEX heap-size >>dwLength
     dup GlobalMemoryStatusEx win32-error=0/f ;
 
 M: winnt memory-load ( -- n )