Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a8be2a5b
Commit
a8be2a5b
authored
Jan 15, 2001
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jan 15, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MapViewOfFileEx: make the returned error dependent on the Windows
version used.
parent
a90797d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
virtual.c
memory/virtual.c
+12
-2
No files found.
memory/virtual.c
View file @
a8be2a5b
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment