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
5e87ca77
Commit
5e87ca77
authored
Jun 21, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement GetErrorMode/SetErrorMode on top of NTDLL.
parent
a4331aaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
process.c
dlls/kernel32/process.c
+11
-5
No files found.
dlls/kernel32/process.c
View file @
5e87ca77
...
...
@@ -70,8 +70,6 @@ typedef struct
DWORD
dwReserved
;
}
LOADPARMS32
;
static
UINT
process_error_mode
;
static
DWORD
shutdown_flags
=
0
;
static
DWORD
shutdown_priority
=
0x280
;
static
BOOL
is_wow64
;
...
...
@@ -2450,8 +2448,12 @@ BOOL WINAPI GetExitCodeProcess( HANDLE hProcess, LPDWORD lpExitCode )
*/
UINT
WINAPI
SetErrorMode
(
UINT
mode
)
{
UINT
old
=
process_error_mode
;
process_error_mode
=
mode
;
UINT
old
;
NtQueryInformationProcess
(
GetCurrentProcess
(),
ProcessDefaultHardErrorMode
,
&
old
,
sizeof
(
old
),
NULL
);
NtSetInformationProcess
(
GetCurrentProcess
(),
ProcessDefaultHardErrorMode
,
&
mode
,
sizeof
(
mode
)
);
return
old
;
}
...
...
@@ -2460,7 +2462,11 @@ UINT WINAPI SetErrorMode( UINT mode )
*/
UINT
WINAPI
GetErrorMode
(
void
)
{
return
process_error_mode
;
UINT
mode
;
NtQueryInformationProcess
(
GetCurrentProcess
(),
ProcessDefaultHardErrorMode
,
&
mode
,
sizeof
(
mode
),
NULL
);
return
mode
;
}
/**********************************************************************
...
...
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