Commit ec603a11 authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

Win32: stop stacktrace on bad pointer

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 7e92a492766d31dfa91aaea2eafb37d35e8886a1)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 24688973
...@@ -356,6 +356,9 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo) ...@@ -356,6 +356,9 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo)
GetModuleFileName( mbi.AllocationBase, module, 256 ); GetModuleFileName( mbi.AllocationBase, module, 256 );
fwprintf( fd, L"%p|%ls\n", caller, module ); fwprintf( fd, L"%p|%ls\n", caller, module );
if( IsBadReadPtr( pBase, 2 * sizeof( void* ) ) )
break;
/*The last BP points to NULL!*/ /*The last BP points to NULL!*/
caller = *(pBase + 1); caller = *(pBase + 1);
if( !caller ) if( !caller )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment