Ignore:
Timestamp:
May 24, 2000, 3:56:08 AM (25 years ago)
Author:
phaller
Message:

Fix: VAJ3 experimental fix

File:
1 edited

Legend:

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

    r2973 r3599  
    1 /* $Id: hmmmap.cpp,v 1.11 2000-03-02 19:17:21 sandervl Exp $ */
     1/* $Id: hmmmap.cpp,v 1.12 2000-05-24 01:56:08 phaller Exp $ */
    22
    33/*
     
    169169 Win32MemMap *map;
    170170
    171   dprintf(("KERNEL32: HMDeviceMemMapClass::MapViewOfFile(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh)\n",
     171  dprintf(("KERNEL32: HMDeviceMemMapClass::MapViewOfFileEx(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh)\n",
    172172           pHMHandleData->hHMHandle,
    173173           dwDesiredAccess,
    174174           dwFileOffsetHigh,
    175175           dwFileOffsetLow,
    176            dwNumberOfBytesToMap, lpBaseAddress));
    177 
    178   if(lpBaseAddress != NULL) {//No can do. Let us choose the address
    179         dprintf(("Can't create view to virtual address %x", lpBaseAddress));
    180         SetLastError(ERROR_OUTOFMEMORY);
    181         return NULL;
     176           dwNumberOfBytesToMap,
     177           lpBaseAddress));
     178
     179  if(lpBaseAddress != NULL)
     180  {
     181#if 0
     182     //No can do. Let us choose the address
     183     dprintf(("Can't create view to virtual address %x", lpBaseAddress));
     184     SetLastError(ERROR_OUTOFMEMORY);
     185     return NULL;
     186#else
     187    // PH 2000/05/24 IBM VAJ3 uses this function.
     188    // I don't think we'll ever succeed in EXACTLY copying the original
     189    // behaviour of the function. Maybe ignoring the base address helps?
     190    dprintf(("WARNING: suggested virtual address %x IGNORED! (experimental API violation)",
     191             lpBaseAddress));
     192#endif
    182193  }
    183194
Note: See TracChangeset for help on using the changeset viewer.