diff options
| author | 2010-07-02 03:55:48 +0000 | |
|---|---|---|
| committer | 2010-07-02 03:55:48 +0000 | |
| commit | fa2d8a88a49f642842b51923b8409b54a43c6e25 (patch) | |
| tree | 63e3916ababcd78278f265b7ba3f8a28ce596ce8 /src/osd | |
| parent | b67fd48c9f12f9b61dce6dc2f6a8a497340ed134 (diff) | |
Oops, forgot to remove some dead code.
Diffstat (limited to 'src/osd')
| -rw-r--r-- | src/osd/windows/winmain.c | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/src/osd/windows/winmain.c b/src/osd/windows/winmain.c index 01ca514d26b..885ed31ee87 100644 --- a/src/osd/windows/winmain.c +++ b/src/osd/windows/winmain.c @@ -375,26 +375,6 @@ const options_entry mame_win_options[] = //************************************************************************** -// INLINE FUNCTIONS -//************************************************************************** - -#ifdef PTR64 -#define IMAGE_FILE_MACHINE_NATIVE IMAGE_FILE_MACHINE_AMD64 -inline FPTR ip_from_context(CONTEXT &context) -{ - return context.Rip; -} -#else -#define IMAGE_FILE_MACHINE_NATIVE IMAGE_FILE_MACHINE_I386 -inline FPTR ip_from_context(CONTEXT &context) -{ - return context.Eip; -} -#endif - - - -//************************************************************************** // MAIN ENTRY POINT //************************************************************************** @@ -831,7 +811,13 @@ bool stack_walker::unwind() { // if we were able to initialize, then we have everything we need if (s_initialized) - return (*m_stack_walk_64)(IMAGE_FILE_MACHINE_NATIVE, m_process, m_thread, &m_stackframe, &m_context, NULL, *m_sym_function_table_access_64, *m_sym_get_module_base_64, NULL); + { +#ifdef PTR64 + return (*m_stack_walk_64)(IMAGE_FILE_MACHINE_AMD64, m_process, m_thread, &m_stackframe, &m_context, NULL, *m_sym_function_table_access_64, *m_sym_get_module_base_64, NULL); +#else + return (*m_stack_walk_64)(IMAGE_FILE_MACHINE_I386, m_process, m_thread, &m_stackframe, &m_context, NULL, *m_sym_function_table_access_64, *m_sym_get_module_base_64, NULL); +#endif + } // otherwise, fake the first unwind, which will just return info from the context else |
