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
fc2c5dfb
Commit
fc2c5dfb
authored
Nov 27, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Nov 27, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented TerminateApp needed for DBase 5.0.
Made FatalAppExit16 honor the SEM_NOGPFAULTERRORBOX error_mode flag.
parent
7a947b34
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
10 deletions
+54
-10
toolhelp.h
include/toolhelp.h
+3
-0
task.c
loader/task.c
+51
-0
except.c
win32/except.c
+0
-10
No files found.
include/toolhelp.h
View file @
fc2c5dfb
...
@@ -241,6 +241,9 @@ DWORD WINAPI TaskSetCSIP(HTASK16 hTask, WORD wCS, WORD wIP);
...
@@ -241,6 +241,9 @@ DWORD WINAPI TaskSetCSIP(HTASK16 hTask, WORD wCS, WORD wIP);
DWORD
WINAPI
TaskGetCSIP
(
HTASK16
hTask
);
DWORD
WINAPI
TaskGetCSIP
(
HTASK16
hTask
);
BOOL16
WINAPI
TaskSwitch
(
HTASK16
hTask
,
DWORD
dwNewCSIP
);
BOOL16
WINAPI
TaskSwitch
(
HTASK16
hTask
,
DWORD
dwNewCSIP
);
/* flag for TerminateApp16() */
#define NO_UAE_BOX 1
/* mem info */
/* mem info */
typedef
struct
tagMEMMANINFO
{
typedef
struct
tagMEMMANINFO
{
...
...
loader/task.c
View file @
fc2c5dfb
...
@@ -1586,6 +1586,57 @@ BOOL16 WINAPI TaskFindHandle16( TASKENTRY *lpte, HTASK16 hTask )
...
@@ -1586,6 +1586,57 @@ BOOL16 WINAPI TaskFindHandle16( TASKENTRY *lpte, HTASK16 hTask )
}
}
/**************************************************************************
* FatalAppExit16 (KERNEL.137)
*/
void
WINAPI
FatalAppExit16
(
UINT16
action
,
LPCSTR
str
)
{
TDB
*
pTask
=
(
TDB
*
)
GlobalLock16
(
GetCurrentTask
()
);
if
(
!
pTask
||
!
(
pTask
->
error_mode
&
SEM_NOGPFAULTERRORBOX
))
{
if
(
Callout
.
MessageBoxA
)
Callout
.
MessageBoxA
(
0
,
str
,
NULL
,
MB_SYSTEMMODAL
|
MB_OK
);
else
ERR
(
"%s
\n
"
,
debugstr_a
(
str
)
);
}
ExitThread
(
0xff
);
}
/***********************************************************************
* TerminateApp16 (TOOLHELP.77)
*
* See "Undocumented Windows".
*/
void
WINAPI
TerminateApp16
(
HTASK16
hTask
,
WORD
wFlags
)
{
if
(
hTask
&&
hTask
!=
GetCurrentTask
())
{
FIXME
(
"cannot terminate task %x
\n
"
,
hTask
);
return
;
}
if
(
wFlags
&
NO_UAE_BOX
)
{
UINT16
old_mode
;
old_mode
=
SetErrorMode16
(
0
);
SetErrorMode16
(
old_mode
|
SEM_NOGPFAULTERRORBOX
);
}
FatalAppExit16
(
0
,
NULL
);
/* hmm, we're still alive ?? */
/* check undocumented flag */
if
(
!
(
wFlags
&
0x8000
))
TASK_CallTaskSignalProc
(
USIG16_TERMINATION
,
hTask
);
/* UndocWin says to call int 0x21/0x4c exit=0xff here,
but let's just call ExitThread */
ExitThread
(
0xff
);
}
/***********************************************************************
/***********************************************************************
* GetAppCompatFlags16 (KERNEL.354)
* GetAppCompatFlags16 (KERNEL.354)
*/
*/
...
...
win32/except.c
View file @
fc2c5dfb
...
@@ -273,16 +273,6 @@ LPTOP_LEVEL_EXCEPTION_FILTER WINAPI SetUnhandledExceptionFilter(
...
@@ -273,16 +273,6 @@ LPTOP_LEVEL_EXCEPTION_FILTER WINAPI SetUnhandledExceptionFilter(
/**************************************************************************
/**************************************************************************
* FatalAppExit16 (KERNEL.137)
*/
void
WINAPI
FatalAppExit16
(
UINT16
action
,
LPCSTR
str
)
{
WARN
(
"AppExit
\n
"
);
FatalAppExitA
(
action
,
str
);
}
/**************************************************************************
* FatalAppExitA (KERNEL32.108)
* FatalAppExitA (KERNEL32.108)
*/
*/
void
WINAPI
FatalAppExitA
(
UINT
action
,
LPCSTR
str
)
void
WINAPI
FatalAppExitA
(
UINT
action
,
LPCSTR
str
)
...
...
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