Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bdebad09
Commit
bdebad09
authored
Feb 02, 2010
by
Peter Rosin
Committed by
Alexandre Julliard
Feb 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add RtlSetThreadErrorMode and RtlGetThreadErrorMode.
parent
2cf159f6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
1 deletion
+28
-1
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-0
rtl.c
dlls/ntdll/rtl.c
+23
-0
rtl.c
dlls/ntdll/tests/rtl.c
+1
-1
winternl.h
include/winternl.h
+2
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
bdebad09
...
@@ -643,6 +643,7 @@
...
@@ -643,6 +643,7 @@
@ stdcall RtlGetSaclSecurityDescriptor(ptr ptr ptr ptr)
@ stdcall RtlGetSaclSecurityDescriptor(ptr ptr ptr ptr)
# @ stub RtlGetSecurityDescriptorRMControl
# @ stub RtlGetSecurityDescriptorRMControl
# @ stub RtlGetSetBootStatusData
# @ stub RtlGetSetBootStatusData
@ stdcall RtlGetThreadErrorMode()
# @ stub RtlGetUnloadEventTrace
# @ stub RtlGetUnloadEventTrace
@ stub RtlGetUserInfoHeap
@ stub RtlGetUserInfoHeap
@ stdcall RtlGetVersion(ptr)
@ stdcall RtlGetVersion(ptr)
...
@@ -842,6 +843,7 @@
...
@@ -842,6 +843,7 @@
# @ stub RtlSetSecurityDescriptorRMControl
# @ stub RtlSetSecurityDescriptorRMControl
@ stub RtlSetSecurityObject
@ stub RtlSetSecurityObject
# @ stub RtlSetSecurityObjectEx
# @ stub RtlSetSecurityObjectEx
@ stdcall RtlSetThreadErrorMode(long ptr)
# @ stub RtlSetThreadIsCritical
# @ stub RtlSetThreadIsCritical
# @ stub RtlSetThreadPoolStartFunc
# @ stub RtlSetThreadPoolStartFunc
@ stdcall RtlSetTimeZoneInformation(ptr)
@ stdcall RtlSetTimeZoneInformation(ptr)
...
...
dlls/ntdll/rtl.c
View file @
bdebad09
...
@@ -1165,3 +1165,26 @@ NTSTATUS WINAPI RtlDecompressBuffer(USHORT CompressionFormat, PUCHAR Uncompresse
...
@@ -1165,3 +1165,26 @@ NTSTATUS WINAPI RtlDecompressBuffer(USHORT CompressionFormat, PUCHAR Uncompresse
return
STATUS_NOT_IMPLEMENTED
;
return
STATUS_NOT_IMPLEMENTED
;
}
}
/***********************************************************************
* RtlSetThreadErrorMode [NTDLL.@]
*/
NTSTATUS
WINAPI
RtlSetThreadErrorMode
(
DWORD
mode
,
LPDWORD
oldmode
)
{
if
(
mode
&
~
0x70
)
return
STATUS_INVALID_PARAMETER_1
;
if
(
oldmode
)
*
oldmode
=
NtCurrentTeb
()
->
HardErrorDisabled
;
NtCurrentTeb
()
->
HardErrorDisabled
=
mode
;
return
STATUS_SUCCESS
;
}
/***********************************************************************
* RtlGetThreadErrorMode [NTDLL.@]
*/
DWORD
WINAPI
RtlGetThreadErrorMode
(
void
)
{
return
NtCurrentTeb
()
->
HardErrorDisabled
;
}
dlls/ntdll/tests/rtl.c
View file @
bdebad09
...
@@ -1039,7 +1039,7 @@ static void test_RtlThreadErrorMode(void)
...
@@ -1039,7 +1039,7 @@ static void test_RtlThreadErrorMode(void)
if
(
!
pRtlGetThreadErrorMode
||
!
pRtlSetThreadErrorMode
)
if
(
!
pRtlGetThreadErrorMode
||
!
pRtlSetThreadErrorMode
)
{
{
skip
(
"RtlGetThreadErrorMode and/or RtlSetThreadErrorMode not available
\n
"
);
win_
skip
(
"RtlGetThreadErrorMode and/or RtlSetThreadErrorMode not available
\n
"
);
return
;
return
;
}
}
...
...
include/winternl.h
View file @
bdebad09
...
@@ -2273,6 +2273,7 @@ NTSYSAPI ULONG WINAPI RtlGetNtGlobalFlags(void);
...
@@ -2273,6 +2273,7 @@ NTSYSAPI ULONG WINAPI RtlGetNtGlobalFlags(void);
NTSYSAPI
BOOLEAN
WINAPI
RtlGetNtProductType
(
LPDWORD
);
NTSYSAPI
BOOLEAN
WINAPI
RtlGetNtProductType
(
LPDWORD
);
NTSYSAPI
NTSTATUS
WINAPI
RtlGetOwnerSecurityDescriptor
(
PSECURITY_DESCRIPTOR
,
PSID
*
,
PBOOLEAN
);
NTSYSAPI
NTSTATUS
WINAPI
RtlGetOwnerSecurityDescriptor
(
PSECURITY_DESCRIPTOR
,
PSID
*
,
PBOOLEAN
);
NTSYSAPI
ULONG
WINAPI
RtlGetProcessHeaps
(
ULONG
,
HANDLE
*
);
NTSYSAPI
ULONG
WINAPI
RtlGetProcessHeaps
(
ULONG
,
HANDLE
*
);
NTSYSAPI
DWORD
WINAPI
RtlGetThreadErrorMode
(
void
);
NTSYSAPI
NTSTATUS
WINAPI
RtlGetSaclSecurityDescriptor
(
PSECURITY_DESCRIPTOR
,
PBOOLEAN
,
PACL
*
,
PBOOLEAN
);
NTSYSAPI
NTSTATUS
WINAPI
RtlGetSaclSecurityDescriptor
(
PSECURITY_DESCRIPTOR
,
PBOOLEAN
,
PACL
*
,
PBOOLEAN
);
NTSYSAPI
NTSTATUS
WINAPI
RtlGetVersion
(
RTL_OSVERSIONINFOEXW
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlGetVersion
(
RTL_OSVERSIONINFOEXW
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlGUIDFromString
(
PUNICODE_STRING
,
GUID
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlGUIDFromString
(
PUNICODE_STRING
,
GUID
*
);
...
@@ -2364,6 +2365,7 @@ NTSYSAPI NTSTATUS WINAPI RtlSetIoCompletionCallback(HANDLE,PRTL_OVERLAPPED_COMP
...
@@ -2364,6 +2365,7 @@ NTSYSAPI NTSTATUS WINAPI RtlSetIoCompletionCallback(HANDLE,PRTL_OVERLAPPED_COMP
NTSYSAPI
void
WINAPI
RtlSetLastWin32Error
(
DWORD
);
NTSYSAPI
void
WINAPI
RtlSetLastWin32Error
(
DWORD
);
NTSYSAPI
void
WINAPI
RtlSetLastWin32ErrorAndNtStatusFromNtStatus
(
NTSTATUS
);
NTSYSAPI
void
WINAPI
RtlSetLastWin32ErrorAndNtStatusFromNtStatus
(
NTSTATUS
);
NTSYSAPI
NTSTATUS
WINAPI
RtlSetSaclSecurityDescriptor
(
PSECURITY_DESCRIPTOR
,
BOOLEAN
,
PACL
,
BOOLEAN
);
NTSYSAPI
NTSTATUS
WINAPI
RtlSetSaclSecurityDescriptor
(
PSECURITY_DESCRIPTOR
,
BOOLEAN
,
PACL
,
BOOLEAN
);
NTSYSAPI
NTSTATUS
WINAPI
RtlSetThreadErrorMode
(
DWORD
,
LPDWORD
);
NTSYSAPI
NTSTATUS
WINAPI
RtlSetTimeZoneInformation
(
const
RTL_TIME_ZONE_INFORMATION
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlSetTimeZoneInformation
(
const
RTL_TIME_ZONE_INFORMATION
*
);
NTSYSAPI
SIZE_T
WINAPI
RtlSizeHeap
(
HANDLE
,
ULONG
,
const
void
*
);
NTSYSAPI
SIZE_T
WINAPI
RtlSizeHeap
(
HANDLE
,
ULONG
,
const
void
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlStringFromGUID
(
REFGUID
,
PUNICODE_STRING
);
NTSYSAPI
NTSTATUS
WINAPI
RtlStringFromGUID
(
REFGUID
,
PUNICODE_STRING
);
...
...
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