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
31a641aa
Commit
31a641aa
authored
Dec 04, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implemented RtlCaptureContext.
parent
3182a363
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
4 deletions
+26
-4
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
exception.c
dlls/ntdll/exception.c
+22
-2
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-1
winnt.h
include/winnt.h
+2
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
31a641aa
...
...
@@ -920,7 +920,7 @@
@ stdcall ResetWriteWatch(ptr long)
@ stdcall RestoreLastError(long) ntdll.RtlRestoreLastWin32Error
@ stdcall ResumeThread(long)
# @ stub RtlCaptureContext ( -> ntdll.RtlCaptureContext)
@ stdcall -register RtlCaptureContext(ptr) ntdll.RtlCaptureContext
# @ stub RtlCaptureStackBackTrace ( -> ntdll.RtlCaptureStackBackTrace)
@ stdcall RtlFillMemory(ptr long long) ntdll.RtlFillMemory
@ stdcall RtlMoveMemory(ptr ptr long) ntdll.RtlMoveMemory
...
...
dlls/ntdll/exception.c
View file @
31a641aa
...
...
@@ -381,6 +381,26 @@ NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL
}
/***********************************************************************
* RtlCaptureContext (NTDLL.@)
*/
void
WINAPI
__regs_RtlCaptureContext
(
CONTEXT
*
context_out
,
CONTEXT
*
context_in
)
{
*
context_out
=
*
context_in
;
}
/**********************************************************************/
#ifdef DEFINE_REGS_ENTRYPOINT
DEFINE_REGS_ENTRYPOINT
(
RtlCaptureContext
,
4
,
4
)
#else
void
WINAPI
RtlCaptureContext
(
CONTEXT
*
context_out
)
{
memset
(
context_out
,
0
,
sizeof
(
*
context_out
)
);
}
#endif
/***********************************************************************
* RtlRaiseException (NTDLL.@)
*/
void
WINAPI
__regs_RtlRaiseException
(
EXCEPTION_RECORD
*
rec
,
CONTEXT
*
context
)
...
...
@@ -405,7 +425,7 @@ DEFINE_REGS_ENTRYPOINT( RtlRaiseException, 4, 4 )
void
WINAPI
RtlRaiseException
(
EXCEPTION_RECORD
*
rec
)
{
CONTEXT
context
;
memset
(
&
context
,
0
,
sizeof
(
context
)
);
RtlCaptureContext
(
&
context
);
__regs_RtlRaiseException
(
rec
,
&
context
);
}
#endif
...
...
@@ -498,7 +518,7 @@ void WINAPI RtlUnwind( PVOID pEndFrame, PVOID unusedEip,
PEXCEPTION_RECORD
pRecord
,
PVOID
returnEax
)
{
CONTEXT
context
;
memset
(
&
context
,
0
,
sizeof
(
context
)
);
RtlCaptureContext
(
&
context
);
__regs_RtlUnwind
(
pEndFrame
,
unusedEip
,
pRecord
,
returnEax
,
&
context
);
}
#endif
...
...
dlls/ntdll/ntdll.spec
View file @
31a641aa
...
...
@@ -433,7 +433,7 @@
# @ stub RtlAssert2
@ stdcall RtlAssert(ptr ptr long long)
# @ stub RtlCancelTimer
# @ stub RtlCaptureContext
@ stdcall -register RtlCaptureContext(ptr)
@ stub RtlCaptureStackBackTrace
# @ stub RtlCaptureStackContext
@ stdcall RtlCharToInteger(ptr long ptr)
...
...
include/winnt.h
View file @
31a641aa
...
...
@@ -1454,6 +1454,8 @@ typedef struct _CONTEXT
typedef
CONTEXT
*
PCONTEXT
;
NTSYSAPI
void
WINAPI
RtlCaptureContext
(
CONTEXT
*
);
/*
* Language IDs
*/
...
...
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