[PATCH] dbghelp: Exit early instead of flooding the console

Detlef Riekenberg wine.dev at web.de
Wed Dec 19 18:39:02 CST 2012


The FIXME in a loop eat all cpu power, make the console
unresponsive and move the failure log out of the
console scrollback buffer very fast.

--
By by ... Detlef
---
 dlls/dbghelp/cpu_x86_64.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/dbghelp/cpu_x86_64.c b/dlls/dbghelp/cpu_x86_64.c
index 29f4c6f..24fed46 100644
--- a/dlls/dbghelp/cpu_x86_64.c
+++ b/dlls/dbghelp/cpu_x86_64.c
@@ -728,6 +728,7 @@ static void*    x86_64_find_runtime_function(struct module* module, DWORD64 addr
                 FIXME("RunTime_Function outside IMAGE_DIRECTORY_ENTRY_EXCEPTION unimplemented yet!\n");
                 /* we need to read into the other process */
                 /* rtf = (RUNTIME_FUNCTION*)(module->module.BaseOfImage + (rtf->UnwindData & ~1)); */
+                ExitProcess(1);
             }
             return rtf;
         }
-- 
1.7.5.4




More information about the wine-patches mailing list