mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
MapViewOfFileEx: make the returned error dependent on the Windows
version used.
This commit is contained in:
parent
a90797d09d
commit
a8be2a5b4f
1 changed files with 12 additions and 2 deletions
|
@ -1576,12 +1576,22 @@ LPVOID WINAPI MapViewOfFileEx(
|
|||
* 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 );
|
||||
{
|
||||
if (GetVersion() & 0x80000000) /* win95 */
|
||||
{
|
||||
TRACE("setting ERROR_INVALID_ADDRESS for WinXX\n");
|
||||
SetLastError( ERROR_INVALID_ADDRESS );
|
||||
}
|
||||
else
|
||||
{
|
||||
TRACE("setting ERROR_INVALID_PARAMETER for NTXX\n");
|
||||
SetLastError( ERROR_INVALID_PARAMETER );
|
||||
}
|
||||
}
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue