Changeset 1301 for trunk/src/kernel32


Ignore:
Timestamp:
Oct 14, 1999, 10:55:39 PM (26 years ago)
Author:
phaller
Message:

Fix: VirtualQuery was broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/virtual.cpp

    r1293 r1301  
    1 /* $Id: virtual.cpp,v 1.17 1999-10-14 17:15:50 phaller Exp $ */
     1/* $Id: virtual.cpp,v 1.18 1999-10-14 20:55:39 phaller Exp $ */
    22
    33/*
     
    568568  else
    569569  {
    570     while(lpvAddress > 0)
     570    while(lpBase > 0)
    571571    {
    572572      rc = OSLibDosQueryMem(lpBase, &cbRangeSize, &dAttr);
     
    574574      {
    575575         dprintf(("VirtualQuery - OSLibDosQueryMem %x %x returned %d\n",
    576                   lpvAddress,
     576                  lpBase,
    577577                  cbLength,
    578578                  rc));
     
    584584         break;
    585585      }
    586       lpvAddress = (LPVOID)((ULONG)lpBase - PAGE_SIZE);
     586      lpBase = (LPVOID) ((LPBYTE)lpBase - PAGE_SIZE);
    587587   }
    588588  }
Note: See TracChangeset for help on using the changeset viewer.