David Rose 18 years ago
parent
commit
b03baf5afd
1 changed files with 1 additions and 2 deletions
  1. 1 2
      dtool/src/dtoolbase/memoryHook.cxx

+ 1 - 2
dtool/src/dtoolbase/memoryHook.cxx

@@ -220,8 +220,7 @@ mmap_alloc(size_t size, bool allow_exec) {
                            allow_exec ? PAGE_EXECUTE_READWRITE : PAGE_READWRITE);
   if (ptr == (void *)NULL) {
     DWORD err = GetLastError();
-    cerr << "Couldn't allocate memory page of size " << needed_size
-         << ": ";
+    cerr << "Couldn't allocate memory page of size " << size << ": ";
 
     PVOID buffer;
     DWORD length =