Nikolay Sivov : ntdll: Store range upper boundary for dynamic unwind entry.
Alexandre Julliard
julliard at winehq.org
Wed Jan 23 17:11:33 CST 2019
Module: wine
Branch: master
Commit: 6f7731819c7386a031f22756933076c5920306e8
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6f7731819c7386a031f22756933076c5920306e8
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Jan 23 08:23:48 2019 +0300
ntdll: Store range upper boundary for dynamic unwind entry.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/signal_x86_64.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/ntdll/signal_x86_64.c b/dlls/ntdll/signal_x86_64.c
index 0e515ff..807e81e 100644
--- a/dlls/ntdll/signal_x86_64.c
+++ b/dlls/ntdll/signal_x86_64.c
@@ -338,7 +338,7 @@ struct dynamic_unwind_entry
/* memory region which matches this entry */
DWORD64 base;
- DWORD size;
+ DWORD64 end;
/* lookup table */
RUNTIME_FUNCTION *table;
@@ -2561,7 +2561,7 @@ static RUNTIME_FUNCTION *lookup_function_info( ULONG64 pc, ULONG64 *base, LDR_MO
RtlEnterCriticalSection( &dynamic_unwind_section );
LIST_FOR_EACH_ENTRY( entry, &dynamic_unwind_list, struct dynamic_unwind_entry, entry )
{
- if (pc >= entry->base && pc < entry->base + entry->size)
+ if (pc >= entry->base && pc < entry->end)
{
*base = entry->base;
@@ -3457,7 +3457,7 @@ BOOLEAN CDECL RtlAddFunctionTable( RUNTIME_FUNCTION *table, DWORD count, DWORD64
return FALSE;
entry->base = addr;
- entry->size = table[count - 1].EndAddress;
+ entry->end = addr + table[count - 1].EndAddress;
entry->table = table;
entry->table_size = count * sizeof(RUNTIME_FUNCTION);
entry->callback = NULL;
@@ -3492,7 +3492,7 @@ BOOLEAN CDECL RtlInstallFunctionTableCallback( DWORD64 table, DWORD64 base, DWOR
return FALSE;
entry->base = base;
- entry->size = length;
+ entry->end = base + length;
entry->table = (RUNTIME_FUNCTION *)table;
entry->table_size = 0;
entry->callback = callback;
More information about the wine-cvs
mailing list