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
7e79b565
Commit
7e79b565
authored
Aug 14, 2007
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Aug 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Return error code if WOWCallback16Ex of a real-mode function failed.
parent
380f1849
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
wowthunk.c
dlls/kernel32/wowthunk.c
+11
-0
No files found.
dlls/kernel32/wowthunk.c
View file @
7e79b565
...
...
@@ -23,6 +23,7 @@
#include <assert.h>
#include <stdarg.h>
#include <errno.h>
#include "wine/winbase16.h"
#include "windef.h"
...
...
@@ -587,9 +588,19 @@ BOOL WINAPI K32WOWCallback16Ex( DWORD vpfn16, DWORD dwFlags,
{
EXCEPTION_REGISTRATION_RECORD
frame
;
frame
.
Handler
=
vm86_handler
;
errno
=
0
;
__wine_push_frame
(
&
frame
);
__wine_enter_vm86
(
context
);
__wine_pop_frame
(
&
frame
);
if
(
errno
!=
0
)
/* enter_vm86 will fall with ENOSYS on x64 kernels */
{
ERR
(
"__wine_enter_vm86 failed (errno=%d)
\n
"
,
errno
);
if
(
errno
==
ENOSYS
)
SetLastError
(
ERROR_NOT_SUPPORTED
);
else
SetLastError
(
ERROR_GEN_FAILURE
);
return
FALSE
;
}
}
else
{
...
...
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