[gimp/gimp-2-10] app: fix wrong fix to gimpbacktrace-windows.c



commit 818cbdbf4c033d24b8b90cacbac4921aaa8ae60f
Author: Ell <ell_se yahoo com>
Date:   Tue Jan 7 22:15:12 2020 +0200

    app: fix wrong fix to gimpbacktrace-windows.c
    
    This fixes commit 468f3e84d85349185db4d5530ca62abba60c7672.
    
    (cherry picked from commit c93e5a2eae9ca8d2c292d922756105bc30d4610f)

 app/core/gimpbacktrace-windows.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpbacktrace-windows.c b/app/core/gimpbacktrace-windows.c
index d652fcf8b5..2355bfe5d1 100644
--- a/app/core/gimpbacktrace-windows.c
+++ b/app/core/gimpbacktrace-windows.c
@@ -461,7 +461,7 @@ gimp_backtrace_new (gboolean include_current_thread)
              StackWalk64 (machine_type, hProcess, hThread, &frame, &context,
                           NULL,
                           SymFunctionTableAccess64,
-                          SymGetModuleBase,
+                          SymGetModuleBase64,
                           NULL))
         {
           thread->frames[thread->n_frames++] = frame.AddrPC.Offset;
@@ -643,7 +643,7 @@ gimp_backtrace_get_address_info (guintptr                  address,
   gboolean         result      = FALSE;
 
   hProcess = GetCurrentProcess ();
-  hModule  = (HMODULE) SymGetModuleBase (hProcess, address);
+  hModule  = (HMODULE) (guintptr) SymGetModuleBase64 (hProcess, address);
 
   if (hModule && GetModuleFileNameExA (hProcess, hModule,
                                        info->object_name,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]