Ignore:
Timestamp:
Sep 18, 2000, 9:26:16 PM (25 years ago)
Author:
sandervl
Message:

matchModName bugs fixed

File:
1 edited

Legend:

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

    r4197 r4279  
    1 /* $Id: virtual.cpp,v 1.33 2000-09-05 20:35:40 sandervl Exp $ */
     1/* $Id: virtual.cpp,v 1.34 2000-09-18 19:26:16 sandervl Exp $ */
    22
    33/*
     
    272272  ULONG flag = 0, base;
    273273  DWORD rc;
     274
     275  SetLastError(ERROR_SUCCESS);
    274276
    275277  if (cbSize > 0x7fc00000)  /* 2Gb - 4Mb */
     
    421423  DWORD rc;
    422424
     425  SetLastError(ERROR_SUCCESS);
     426
    423427  // verify parameters
    424428  if ( (FreeType & MEM_RELEASE) && (cbSize   != 0) )
     
    486490  int npages;
    487491
    488   if(pfdwOldProtect == NULL)
     492  if(pfdwOldProtect == NULL) {
     493        dprintf(("WARNING: pfdwOldProtect == NULL"));
     494        SetLastError(ERROR_INVALID_PARAMETER);
    489495        return(FALSE);
     496  }
     497
     498  SetLastError(ERROR_SUCCESS);
    490499
    491500  rc = OSLibDosQueryMem(lpvAddress, &cb, &pageFlags);
     
    561570  LPVOID lpBase;
    562571
     572  SetLastError(ERROR_SUCCESS);
     573
    563574  if(pmbiBuffer == NULL || cbLength != sizeof(MEMORY_BASIC_INFORMATION)) // check parameters
    564575  {
     576        dprintf(("WARNING: invalid parameter"));
    565577        SetLastError(ERROR_INVALID_PARAMETER);
    566578        return 0;                             // nothing to return
    567579  }
    568   SetLastError(ERROR_SUCCESS);
    569580
    570581  // determine exact page range
     
    647658{
    648659  dprintf(("VirtualLock at %d; %d bytes - stub (TRUE)\n", (int)lpAddress, dwSize));
     660  SetLastError(ERROR_SUCCESS);
    649661  return TRUE;
    650662}
     
    655667{
    656668  dprintf(("VirtualUnlock at %d; %d bytes - stub (TRUE)\n", (int)lpAddress, dwSize));
     669  SetLastError(ERROR_SUCCESS);
    657670  return TRUE;
    658671}
Note: See TracChangeset for help on using the changeset viewer.