Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
fc2c5dfb
Commit
fc2c5dfb
authored
24 years ago
by
Andreas Mohr
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implemented TerminateApp needed for DBase 5.0.
Made FatalAppExit16 honor the SEM_NOGPFAULTERRORBOX error_mode flag.
parent
7a947b34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/toolhelp.h
+3
-0
3 additions, 0 deletions
include/toolhelp.h
loader/task.c
+51
-0
51 additions, 0 deletions
loader/task.c
win32/except.c
+0
-10
0 additions, 10 deletions
win32/except.c
with
54 additions
and
10 deletions
include/toolhelp.h
+
3
−
0
View file @
fc2c5dfb
...
...
@@ -241,6 +241,9 @@ DWORD WINAPI TaskSetCSIP(HTASK16 hTask, WORD wCS, WORD wIP);
DWORD
WINAPI
TaskGetCSIP
(
HTASK16
hTask
);
BOOL16
WINAPI
TaskSwitch
(
HTASK16
hTask
,
DWORD
dwNewCSIP
);
/* flag for TerminateApp16() */
#define NO_UAE_BOX 1
/* mem info */
typedef
struct
tagMEMMANINFO
{
...
...
This diff is collapsed.
Click to expand it.
loader/task.c
+
51
−
0
View file @
fc2c5dfb
...
...
@@ -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)
*/
...
...
This diff is collapsed.
Click to expand it.
win32/except.c
+
0
−
10
View file @
fc2c5dfb
...
...
@@ -272,16 +272,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)
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment