Marcus Meissner writes:
> > I tried to run Borland C++ 5.02 under Wine... some problems with
> > installing (had to press Control a couple of times at each dialog box to
> > make them show up), but I finally got it in, it started, so I tried to
> > compile something... but no go...
> > 
> > "Fatal: Failed to create map file H:/dev/wine/libtest/guitest.ilf (error code 87)"
> > 
> Some months I've added this snippet to memory/virtual.c:
> 
>     /* Map the file */
> 
>     TRACE("handle=%x size=%x offset=%lx\n", handle, size, offset_low );
> 
>     ptr = (UINT)FILE_dommap( unix_handle, addr, 0, size, 0, offset_low,
>                              VIRTUAL_GetUnixProt( prot ), flags );
>     if (ptr == (UINT)-1) {
>         /* KB: Q125713, 25-SEP-1995, "Common File Mapping Problems and
>        * Platform Differences": 
>        * Windows NT: ERROR_INVALID_PARAMETER
>        * Windows 95: ERROR_INVALID_ADDRESS.
>        * FIXME: So should we add a module dependend check here? -MM
>        */
>       if (errno==ENOMEM)
>           SetLastError( ERROR_OUTOFMEMORY );
>       else
>           SetLastError( ERROR_INVALID_PARAMETER );
>         goto error;
>     }
> 

Wasn't this a case where Winxx and Ntxx returned different failures?

Maybe program rely on the right error returned for the version
emulated? At least that was my impression with the Borland Data Engine 
(BDE) Gerald taked about.

Bye

Uwe Bonnes                [EMAIL PROTECTED]

Free Software: If you contribute nothing, expect nothing
--

Reply via email to